Work in progress. It actually compiles and runs! And fails miserably.

TODO: Move compressor buffers into the file accessor, and wait for
buffers to be written when closing a file.