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.
Actually, my belief is that it doesn't change the visible results one bit - that it's only a refactoring!