[1/3] Device: Fix dock function key support. Based on patches by jruesga from CyanogenMod sources. Needs also frameworks/base and tf101 kernel parts.

Rebased.

Rebased: Fixed bug with volume up/down dock keys crashing the
power menu and the dock screen lock key.

Fixed a derp or two.

Rebased.

Change-Id: I2d6258b2b9473ea0a7d36a4f5c0a470c0aaa71fa