CLOUDIFY-2224 fixed isLocalcloud service context method and some refactoring to the BaseServiceContext