Allow view models in visual hierarchy to "re-route" commands.

As an example, when the PropertyGrid tool window is active, it reroutes
the Undo and Redo commands to the selected documnt, same as Visual
Studio does.