Fix filemodes.
Switch to using Makefiles and RDEFs.
Add .gitignore.
Use the new BBufferProducer::SendBuffer method. Fixes the build.
Remove useless files.