Refactors server and interface, session cannot contain objects.