First message CONNECT

along with a lot of refactoring