Put ALLOWED_HOSTS in changable configuration.

Slight reordering tidy.