Bug 951120 - Don't process native events on the main thread during xpcom shutdown in metro widget. r=bbondy
Bug 951120 - Detach ICoreWindow related events prior to shutdown, plus some misc. code cleanup. r=bbondy