Adding fix for REGISTRY-2220
Revert "Adding fix for REGISTRY-2220"

This reverts commit 58261cee22b94b38d9f9bc6f5852694487f5db4b.
Adding fix for issue REGISTRY-2220
Fixed CARBON-14768
deprecating file based persistance model in fixing CARBON-14744
deprecating file based persistance model in fixing CARBON-14744
Fixing CARBON-14482, Updated to set username to the CarbonContext in CarbonTomcatRealm.

Signed-off-by: Jayanga Dissanayake <jsdjayanga@yahoo.com>
Modifying tests to use a custom valve and removing unwanted dependency from pom.xml

Signed-off-by: Jayanga Dissanayake <jsdjayanga@yahoo.com>
Fixing CARBON-14870
Merge pull request #41 from shamrath/master

Fixing CARBON-14870
Merge branch 'master' of https://github.com/wso2-dev/carbon4-kernel
fix for CARBON-14874
Merging changes from jayanga related to pull#40
Merge branch 'jsdjayanga-master' with pull#40
Merge changes from isuru udana for pull#42
Merge branch 'master' of https://github.com/wso2-dev/carbon4-kernel
Merge branch 'isudana-master' for pull#42
Merge branch 'master' of https://github.com/wso2-dev/carbon4-kernel
merging pull#35. changes from subash
Merge branch 'subash89-master' for pull#35