CLOUDIFY-2053 - Better handling of exceptions in the new Rest API, and fixed auth-groups for install-application.