Modernize apptools.undo

Using this in a project, so I have updated it to use the new traits adaptation machinery.  Modules now import without any warnings when used with Traits >= 4.4.0.

Have also added absolute imports throughout.