Improve username handling
Add better connection/disconnection interface