magit-post-command-adjust-point: new function

See https://github.com/magit/magit/issues/1592,
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19188, and
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19200.