improvements

This pull request includes an additional fix for my previous submitted patch. I've been using this for a few days now, with lots of reloads, on HTTP and HTTPS servers, pre-authorized, post-authorized, and seemingly working without a hitch.  Basically, sometimes events fire before other events (when they're expected to happen in a certain order), so this makes things a bit more fuzzy, so it doesn't matter so much which order things happen.

rtc.connections is now has garbage collection (in the same places as rtc.peerConnections/rtc.dataChannels)

I've also added a "debug" variable to turn on/off console.log'ing