Add json_response_for().
Use json_response_for() in the easy cases.
Return a dict in tree_json() and serialize in the caller with json_response_for().
Use json_response_for() for jsonp, too.
Merge pull request #305 from whilp/0.9.x-json_response_for

Generate utf-8 JSON when possible