CLOUDIFY-2229 json pretty print, return 201 on post.
CLOUDIFY-2229 simplified json responses.
CLOUDIFY-2229 added error handling.