maybe_merge staples together subsequent frames with the same content typ...

...e (saves 5 bytes each!)

maybe_split splits messages into fragments of 2 ^ 14 size, as required by RFC!