Add functions provided by the midend to tell a front end whether GUI buttons for undo and redo should currently be greyed out. [originally from svn r9139]