Remove deprecated features

When running in httpd, Django complains about deprecations.
Settings also contained some code to be removed in H relase.

Fixes bug 1172222

Change-Id: I17d7e2e7c23fd53fadf2a62c0568f61704bdf0b3
Merge "Remove deprecated features"