BufMut extensions

A small set of extensions for BufMut that provides useful functionality for protocol development.

Mainly: