CLOUDIFY-1768 move shared logic to separate class, and remove dep on rest configuration from base controller