Add DBALQueryInterface

Further todos relevant to this code:

* https://github.com/wmde/WikibaseDatabase/issues/30 QueryResult inconsistency
* https://github.com/wmde/WikibaseDatabase/issues/59 DBALQueryInterface::select should use $options parameter