Adding subscription support for clustering environments

Fixed jiras

1. https://wso2.org/jira/browse/REGISTRY-2273
2. https://wso2.org/jira/browse/REGISTRY-2300