Process multiple frames in a single packet

Fixes https://github.com/njh/ruby-em-mqtt/issues/2