Fixes #66 - allow endpoints to contain custom url parameters
Fixes #67 - correctly sets the content-type for processing of the response