Fixed broken Undo, made Undo useful on CLI
Avoid bogus error nagifications on Firefox, add detail otherwise (fixes #1134)