CLOUDIFY-2060 added logs to test and fixed getLastEvent in rest. now throws exception if the deployment id is does not exist