Fix private message parsing
Allow quit commands to be sent in private message
Refactor topic handler