Make commands return their message, rather than directly interact with the connection object. Allow returning an array with "html" and optionally "text" values for HTML messages.
Also add a way to get a connection object from a global point, for sending custom commands to the XMPP server.