Rewrote Buffer Class

The Buffer class was finally rewritten to function as a thin wrapper to
a stringstream. This increases the flexibility of Buffer in working with
different types while still providing some level of abstraction through
operator overloading. Furthermore the header parsing was moved to its
own Sequence class.