Tidied up views.

* Somewhat more PEP8 compliant.
Refactored Django forms.