Fix leaking of transports due to connection lost

When a connection is broken the connectionLost method of the transport is
called. The default behaviour is to do nothing. This patch overrides it
to store the new state on the transport. The transport is then garbage
collected the next time _getFreeTransport is called.
Merge pull request #28 from wrapp/fix-transport-leakage-on-connection-lost

Fix leaking of transports due to connection lost