Fixed logging for django 1.5, fixed few imports.
Improved prod settings.