Pretty-print notebook JSON when writing to file.

For version-controlled notebooks the diffs are much nicer if the JSON is pretty-printed.