Fix missing nav bar in landscape mode for tablets

(cherry picked from commit 8fa08abaffeafef69f459e6554687b0862879d29)

Change-Id: I967880722576bda465be261df4f43d91ca7937c3
[Base] HW keys tweaks

PS: to enable this feature you need to set to true <bool name="config_hwKeysPref">true</bool> in device overlay. Of course this is for devices with hardware and capacitive keys ;)

Want to say thanks here for @Temasek, CyanogenMod Team and OmniRom Team

The hole inital idea of this commit is from Temasek with codes initially based on HW keys features from crDroid KK. 3-dots overflow button codes was ported from CM KK and some really useful ideas was taken from Omnirom sources.

(cherry picked from commit 5c6b8b69bfc07e728bd3581166097f2133f7753c)

Conflicts:
	core/res/res/values-mcc232-mnc12/config.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	services/core/java/com/android/server/wm/WindowManagerService.java

Change-Id: Idebe658646fb6a523cded98323dffd7c4414fac0