Fix up error message to not reference absent variable
Pass PUT data as JSON
Merge pull request #12 from Metaswitch/integration-testing

Issues found in integration testing