Update selections on undo/redo explicitely.

Before it was updated on general graph changes which was too noisy.
Use new graph API for the annotation index.
Make Container a first class citizen in Document's world.
Remove obsolete transformer.