Rearranged functions - no code changes.
Order:
- twisted/send-receive
- looping tasks (ping)
- specific message handlers
- control (join/msg)
- debug