Fixes issue #44
Create and update methods now convert entities to JSON before sending
the request to the web service.