adding changes to deployment engine based on first architectural review
changes and improvements to deployment engine based on internal review
Merge branch 'master' of https://github.com/wso2/carbon-kernel