Fix Back Key behaviour and Director::getInstance()->end() on WP8

This fixes #8320 and #8485 which seem to have been fixed on v2 but not yet on v3.