Added Auto Rotation Toggle as a hardware key option.

(cherry picked from commit 35140055518cca505b79d2b1c27c8feb957c1d30)

Revised by C3C076:
- Toasts cannot be used directly within PhoneWindowManager instance
since its thread has no Looper. Use its handler for executing action.

Cherry-picked and backported from KitKat branch
Implemented explicit takeScreenshot method
Fixes screenshot from Power menu and from Tile on Moto X