The source project of this merge request has been removed.
Replace all of the internal handling with a state machine
All of the previous socket handling is removed, remains only this new state machine implementing the entire connection process, as well as the event system.
This also updates all dependencies, thanks pep.!