Updated example with a README.md and fixed some logs.
* Tests for Component and code style fixes
XMPP and WebSocket transports require different open and close stanzas. To handle this the responsibility handling those and creating the XML decoder is moved to the Transport.