Have started the port to client/server

Fixed problem with username/passwords, still needs more work. Have
moved the logging function to main stack.