Query interface promises

This changes all code in query interface to use promises, and removes the queryAndEmit function completely

To make this work I also had to change `ConnectorManager.query` to return a promise for all dialects, so that's what I did :)