Refactor fixed_streambuf

Refactor fixed_streambuf to provide a safer and more convenient
interface. Move it to cpplog::helpers namespace.