Support for WP8, multiple emulators, and a few other things...

This is a large commit, because it condenses quite a lot of work into
one thing. Future commits will be smaller.