Added server support and mock client support for sessions
Adding an option to get the list of sessions