Created by: paulpdaniels
Added some simple math optimizations to the HybiParser by removing extraneous calls to Math.pow and Math.floor. By taking advantage of int/long division can also remove some of the explicit casts. This mostly applies to the case where the message is over 65535 bytes.
Added an overload for WebSocket.send and HybiParser.frame methods which allows for sending buffer slices of an array without having to explicitly copy data into a fitted array. As a result also had to rearrange the private frame overloads so as to avoid the namespace collision.
I believe it should be a non-breaking change, unless users have provided their own WebSocket implementations...