Added ALLOWED_HOSTS, and added environment-based settings for logging di...

...rectory