Replace entire set on bitfield message, instead of sending each index
Make inner function class method
Handle zero length keep-alive message