Support DATABASES and DEBUG settings from environment and remove tree.core.db.
Merge branch 'issue115' into portal