Django 1.5 upgrade

Closes #20.