Factored out connection handling to ConnectListener.

API is still intact, but it is planned to replace the connectedTimeout
parameter of the Stomp.connect() method by a listener parameter.