Added a bunch of test coverage

I also updated `manage.py` to be compatible with Django 1.6+ and added configuration for Travis-CI which will run tests, coverage, complexity and static analysis.