Run tests on MySQL and use travis-$DB environments.

refs #921
fixes #1385
Bugfixes for tests
Merge pull request #1393 from halfdan/1385-travis-testing

Run tests on MySQL and use travis-$DB environments.
Add transactions for import

closes #837
- added transaction handling for import
- added transactions to model functions