the anonymous functions used for ignoreMOTD and SSL and such need to go, other functions need to be cleaned up nicely, the protocol module should probably also be cleaned up and have tests applied to it to handle errors.
I am kind of tempted to mark this as a bug.