Changed session and server to use pickled objects