Return an empty JSON object from POST queries.

Instead of returning an empty string from POST queries to the API,
return a {} so that JSON-based clients don't error out in parsing.
Fix dataType's JSON type validation.
Call .handle_request on the state object.