Use Zend Select object instead of TableGateway for building queries.

Fix Abstract Mapper to use the Select and Sql objects to build queries.