BackButton support for WP8 (with orientation)

Same as #1327 but with the required changes to make it work with #1336, resulting in nicer code.