Hookup Shell Closing and Loading events. Allow an IApplicationCloseHandler to cancel closing.
Add more tests. Convert testing engine from VSTest to XUnit.