Adapt to heroku following official tutorial.
Don't break production when test userdms is not defined.
Add support for local_settings.