Implemented POST,PUT and DELETE session calls
Fixed Logout related issue
Removed unused function
Minor changes for readability