Initial commit. Ported Windows Phone 8 code back to Windows Phone 7.