Requesthandler refactoring2

@mhugent this is the clean patch for request handler refactoring as discussed in https://github.com/qgis/QGIS/pull/1620