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)
Merge pull request #33 from prasa7/master

Added lifecycle feature and fixed JIRA -REGISTRY-2307- Product-greg bulid failure. 
Merging pull request by prasanna dangalla to fix a build failure due to missing ES lifecycle feature.