Set the Content-Type header to 'application/json'

This allows rpcjson to interoperate with stricter servers that reject the standard Content-Type header that Net::HTTP uses for POST requests. ie: application/x-www-form-urlencoded

It also fixes a slight whitespace issue which I can split into another commit if you like.