Use magit-revert-buffer-hook

Closes #19
References magit/magit#603