[WIP] All tests are passing in travis, even when running ckan and ckanext together

This pull request makes our tests behave well, without random failures and tests not tearing down correctly.

(cc @kindly @domoritz)