Improve gofmt support

Let gofmt rewrite the input file, and refresh the buffer post-save.
Although this introduces a slight flicker upon save (in OSX, at
least) it's instantaneous and more importantly: the cursor/view is
preserved and no longer jumps erratically.