Added ability to return JSON from response in client.
Merge branch 'master' of github.com:danielsmith-eu/webbox into timeseries