[1/2] base: add custom hardware button mapping

Possible mapping

 0 - Nothing
 1 - Menu
 2 - App-switch
 3 - Search
 4 - Voice search
 5 - In-app search
 6 - home
 7 - back
 8 - toggle last app
 9 - kill app

Overlay required

depending on the number of buttons on your device

<!-- Hardware 'face' keys present on the device, stored as a bit field.
     This integer should equal the sum of the corresponding value for each
     of the following keys present:
         1 - Home
         2 - Back
         4 - Menu
         8 - Assistant (search)
        16 - App switch
     For example, a device with Home, Back and Menu keys would set this
     config to 7. -->
     <integer name="config_deviceHardwareKeys">7</integer>

PS2/3:
-whitespaces
-fix default back mapping
-cleanup debug log

PS4:
-added missing init of mPressOnHomeBehavior
-fixed home button derp

Change-Id: Ie28bda05e80f5c3bfc63c35c0ade8b0875e85e97
Merge "[1/2] base: add custom hardware button mapping" into android-4.4
[1/3] base: add support for adb over network

Change-Id: If8354c92a03da501c683638cc69097d287d74816
Merge "[1/3] base: add support for adb over network" into android-4.4
merge changes from Omni 4.4 into local branch

Conflicts:
	core/res/res/values/custom_strings.xml

Change-Id: I77117b52ef429810bd66b81474d02f1e17bb15cf