Make sure that handlers always return Json::objectValue.

Reviewers: @nbougalis @scottschurr

This is necessary for the "streaming JSON RPC" review upcoming, but it's also useful in its own right.