Remove import/use of django.http get_host function

get_host function does not exist in Django 1.5.

Also whitespace cleanup.