Major conversion of Bzip2 routines to use the generic buffer structure rather than
the previous implementation-specific code.  And it works, according to the simple
tests so far.

cfile_buffer now has a buf_empty function that simplifies the check of whether
there is anything left in the buffer.