add use_json config variable to support JSON requests

When config.use_json == true, happi should send the http request body as JSON. At the moment it encodes request body as a form.