Updated client to use gson lib for param serialization

Removed hand-rolled function to serialize parameters. Added two test cases to test sending ArrayList and Array as data. 

Version number needs to be updated, but I don't speak pom.xml so don't want to break it.