server dialogue now "works"

Contains all messages to/from server.
excessive use of QUIT/close. Dont know why.