Sets transport uri on socket
Updates tests to use transport events instead of setTimeout
Fixes XhrTransport to emit message event when ajax is sent