Integrate test suite with tox

This should make running the test suite much easier :) I've moved the settings out of the schemamigration.py script and into a test_settings.py module that can then be used by the script and the test-runner.