[WIP] Split management of messages, resend state, timeouts and so-on into a sub-component of Client called Dispatcher. This components also maintains cross-transport concerns like cookies and headers.
Update the self-signed certificates we use for testing.
Use parens on all logging statements.
Port the recent refactoring to introduce the Dispatcher class over to JavaScript.