Added config API

You can now add new settings with a single line instead of having to
modify multiple files.