RFC for Api Query Log Listener

I'll add tests if the feature seems sane :)

The output will look like this:

```json
{
   "success":true,
   "data":[

   ],
   "queryLog":{
      "default":{
         "log":[
            {
               "query":"SELECT SOMETHING FROM SOMEWHERE",
               "params":[

               ],
               "affected":25,
               "numRows":25,
               "took":0
            },
            {
               "query":"SELECT SOMETHING FROM SOMEWHERE'",
               "params":[

               ],
               "affected":1,
               "numRows":1,
               "took":0
            }
         ],
         "count":2,
         "time":0
      }
   }
}
```