Improve the way the bayes words file is written to disk.

 - Uses StreamOutputRange for improved performance
 - "Atomically" switches the the newly written file to avoid partial file contents