A first pass at streaming the backup processing.

No longer parsing the entire database, but still assuming that the entire database can be held in memory as a list of strings. Going "full stream" will be much easier with node 10.x so we should move to that soon.