Allow applications to override power key

Allows user to take use power key to take pictures/videos eg

Change-Id: I85a1e1761199f4604672be42a3a5005227f5451a
Fix hardware home key behavior on wake-up

Change-Id: Ib489e4b8bb1d10591afc96c680c7865d61c959a0