Added support for config file variables in get_appsettings and initializedb

Being able to put variables in config files is neat, but the lack of support for this in the initializedb scaffold script make it a little difficult to use.

This pull requests solve the problem by changing the usage of the script to `usage: %s <config_uri> [var=value]` and making the modifications needed to make it work.