Partial fix for MAGN-52

Subscribe to document open and close events and cache the UIDocument on
dynRevitSettings accordingly. Disable the run button when there is no
active UI document.