Use phpunit 3.7 for compat with mediawiki for travis

Until https://gerrit.wikimedia.org/r/#/c/131488/ is merged,
which will allow phpunit 4.1 to work.
Merge pull request #19 from wmde/travis

Use phpunit 3.7 for compat with mediawiki for travis
Update construction of QueryEngine services after DBAL migration