Catch up with upstream's changes to local_settings.py

In the past 6 months, quite a few things have changed upstream. It's
time to catch up and add the changes from local_settings.py.example.

Fixes: bug #1223317

Change-Id: I1fcabdf926263f1c6b6f19acd34ec59bf17283c3