Changed session to require a server on construction

Session class now takes a server object as a parameter in the
constructor instead of a string.