Using new pub/sub cache invalidation

The changes use the new pub/sub global cache invalidation. The public JIIRA is the following

https://wso2.org/jira/browse/REGISTRY-2151