Refactored to remove deprecated CarbonContext API methods
Merge remote-tracking branch 'wso2-dev-product-greg/master' into dev
Merge pull request #30 from prasa7/dev

Fixing REGISTRY-2305 - Refactored to remove deprecated CarbonContext API methods. Merging the pull request provided by Prasanna Dangalla (prasanna@wso2.com)