Update test requirements to Django 1.4
Some refactoring and better comments.
Docs tweaks
Bump version to 0.3.1