Fixed a bug with HTTP being returned from JSON request, added auth.

Fixed a bug where if the Instagram API returns a HTML 500 page, the
parser would throw an execption and kill the listener. It now handles
it properly, using the fail callback.

Also added authentication of post requests to the dummy server.