Don't expose the Strophe connection object globally.

Instead, expose only the initialize and onConnected functions.
Updated the tests to work with this.