Added some documentation comments. Refactored the constants. Fixed the pinned server bug

git-svn-id: https://svn.wso2.org/repos/wso2/carbon/platform/trunk@181852 a5903396-d722-0410-b921-86c7d4935375
Changes identified by the code review changes (on 13/08/2013) 

git-svn-id: https://svn.wso2.org/repos/wso2/carbon/platform/trunk@181853 a5903396-d722-0410-b921-86c7d4935375