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.