Added no_tempfile parameter to write_chunks_to_file to do non-atomic writes. Implements #1376.
Added test for new write_chunks_to_file behaviour in #1376.
Fix some whitespace; tighten the tests.
Merge branch 'bug1376'