Stockholm writer now streams to file

Instead of building up a dual representation in memory and then dumping to file.