Client connection acceptance

Client connections working
Rework of the OnAccept and OnSystemError functions to use the listener
code from libEvent
Multiple ports on different connections working
Threading model changed to not start until the port is set.