Include old filename in patch JSON when a rename occurs

Per @kevinxucs's request.
Also fixes a bug in the diff-parsing regex that I found when adding the unit test.
CC: @dlindquist