Set the correct json content-type

Chance text/json to application/json to comply with the RFC.

See http://www.ietf.org/rfc/rfc4627.txt for more information.
Merge pull request #406 from Cykey/master

Set the correct json content-type