SIGN IN SIGN UP

Move connection logic into connection class

- Moved everything I could into the class itself.
- Improve the logging situation a bit.
- Switch some trace logs to debug.
- Get debug port from message arguments.
A
Asher committed
f0bafa387ffb4d01c919c5b5bdcc7a7b56293cfe
Parent: ae6089f