Added checks to verify that we do not try and clear the foreverFrame iframe DOM when we don't need to.

- This involved adding a state check for connected and deleting the frame message count on transport stop.
- Also added an iframeClearThreshold value to the forever frame transport to allow me to test it.

#2494
Added tests to verify that forever frame does not throw in start/stop stress scenarios.

#2494