Clean up on-connect, and more importantly fix the parseSessionIdFromCookie buisness
Made tests pass again by using .set