CLOUDIFY-2110 - supporting invokeCustomCommand through the new rest api.
CLOUDIFY-2110 - Fixed previous merge issues.