add emit method
implement most of the handler
allow starting threads with the relevant functions
add login code
give main thread a name
oops
add 'e'
log raw commands
oops
fix NICK handler
oops