- Migrated base code to support Django 1.4-1.8.
- General code and tests cleanup, fixed all the pep8 errors.