Tests

* Add a basic test suite.
* Test locally with Tox
* Travis.ci
* Fix a bunch of compat. issues (mainly Django 1.5, and Python 3.2)