Use better technique for determining focused item

Fixes #115.
Inspector categories can be toggled by clicking anywhere in the header

Fixes #116
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.