Add support for different kind of update handler responses (such as JSON or ICouchDocument deserialized objects) and write unit tests for these