Add basic support for file output

Resolve issue #6 by adding a write mode to `af_open` and a `write` method for `AudioFile`. Currently, the file type is inferred from the extension. I was only able to get WAV and FLAC output to work. OGG output was causing all sorts of problems.