Correctly encode query parameters when given URL already has query parameters
Add test and implementation for JSON serialisation
Tidy up tests so that less work is done in assertion blocks
Add Travis CI build status to readme