ProcessRealsController now flushes writer when finishing a source.

Added integration test for the flushing process.

Closes #61.