Add support for QJson writing, add std::mem_fn support in binding for configuration.

* Removed auto deletion of bound methods (it was ugly anyway)
* Added support for std::mem_fn in binding gateways
* Fix some response issues