Implemented a basic version of a WinRT based event loop.