[WIP] Don't close the popover when the app is showing a modalWindow.

If we've presented a modal window from a popover, we don't want it to be dismissed when the modal window is moved ... the mouseUp event from moving the modal will cause the popover to be closed. :cry: 

Not yet convinced that this is the best solution, so I will try out a few other ideas.