Fixed most (not all) bugs in the bcsocket javascript port
Reflowed comments
Reflowed more comments, fixed options.prev and refactored fireCallback
Made sendMap silently drop messages sent after close instead of throwing
Tweaked comments and added socket.sendWhileConnecting