Change JSON API to accept JSON in URL instead of HTTP body

* Parse out JSON fields from URL instead of HTTP body
* Change RSA pubkey format from hex encoded pem to just pem
* Correct API validation errors