dispatch: pass method for default handler
parse: message-list is not really a list
connection: add close handler

We also need to sequence tag processing so that a done handler for
LOGOUT won't make our code unhappy.
connection: only upcall when state really changes
start minimal application