Add Travis CI support
Refactor tests, fix for Travis CI

- Perform simple cache test before running rest of test suite
- Move cache settings to tests/settings.py
- Move cache choice to test class attribute
- Use Django 1.7 cache loading when available