nbmerge: save notebook to disk after successful merge

Handles the PUT request generated by the IPython Notebook javascript, and saves the resulting notebook to disk.