[Reviewer: Andy] Escape all parameters

Andy,

This is a corresponding fix to homestead-prov/homer to escape parameters when substituting in local_settings.py, and fixes the same problem as https://github.com/Metaswitch/ellis/issues/80.

Again, I've live-tested.

Cheers,

Matt