Implement file output writer

Also fix config bug which caused queuesize and inputbuffersize to
be ignored.
Merge pull request #11 from ironcladlou/file-output

Implement file output writer