CLOUDIFY-2075 Added internal upload command to the internal REST API.
CLOUDIFY-2075 Added the access to upload and upload-internal urls to the secure profile in http-intercept.xml
CLOUDIFY-2075 upload's roles include only 'ROLE_CLOUDADMINS' and 'ROLE_APPMANAGERS'
CLOUDIFY-2075 security declarations for upload and templates controllers.
CLOUDIFY-2075 updated logs and comments.
removed redundant code that caused ArrayIndexOutOfBoundsException.
CLOUDIFY-2074 removed redundant code that caused an ArrayIndexOutOfBoundsException.
CLOUDIFY-2077 removed confusing log in case of JsonParseException.