Settings API (store, access, edit)

Hi,
I think that everyone who happened to make their own widgets/triggers needs to store and edit settings.
How about adding a common API for the authors to declare some settings for their modules so that they would be conveniently stored, accessed and edited by user?
What do you think?