Added jsonrpc example and small changes to support it.

* It needed to read posts with no content-type as raw data. This may break some old clients. If so, please notify ASAP.
* Dict now can read integer numbers in json, but as a string.
* Tests now send content-type as needed for post.