ServerMethods: Add function to get or create sessionId

Change-Id: I900d400b85a9f6f4c706b407fedea98ec382e72d