complete the settings upgrade to version 1

See #174 and 6b5e8e62b24ccf3a5e0b7b76e05b72253db08db0.

In b309ee0ec347f13a5a324a38866ffc01f9c62b54 I moved the `import app` statement just after `import info`.
This way, when `setting.py` is called directly, the organization name and domain and the application name are correctly set.
The price for this is that the application is started (and then immediately killed by `sys.exit(0)`).