Test hooks for Windows Phone automation

Changes to the windows phone SDK and the E2E test application to allow for automatic login (via JS scripts) on debug builds.