Changed tests to assume JSON responses.
Added response type handler for JSON.
Added response type handling for `text`.
Added response type handler for XML.
Merge pull request #2 from jussi-kalliokoski/response-parsing

Response parsing (default to JSON)