Remove use of gone-in-1.5 get_host function.

Also whitespace cleanup.
Merge pull request #12 from kmtracey/master

Remove import/use of django.http get_host function. Thanks @kmtracey.