Added custom callbacks to GET and POST methods

Makes the code a lot cleaner. Also removed JSNI methods parse and
stringify.