Added connection state JS tests to each of the transports

- The state tests verify that connections transition into each of the
states and that they utilize the statechanged event.
Removed ConnectionStateFacts.js

- Moved the logic into each transport individually