Appending exports

Batches writes on export to 10k lines at a time. Done this way to keep things simple for node 0.8