wm: Make the default menu longpress action configurable at build time

Do the same we do for home. For CDD validation, we need to switch
the menu and home longpress action, since Home must map to Google Now.

Change-Id: Iacfedf711d43f6637023c87c00e6c6b8b8a437dc
wm: Underp menu key release processing

Change Iacfedf711d43f6637023c87c00e6c6b8b8a437dc made key release perform
the assigned action regardless of alternate modes, but the keypress
processing depended on said modes. Make it consistent.

Change-Id: I4be44b065f775f0304aa9770778c8fee82ef8ef1
wm: Simplify menu action decision paths

Since the action is performed directly from the handler, remove all
fallback paths and "if not default action" checks; these are superfluous,
and can send the wrong events to apps implementing their own input handlers.

Change-Id: Iaafe9c7a1ab0ab75ae93f1c8a6e1efb6c7a616cb
Revert "WallpaperCropper requires these permission."

This reverts commit 0cfac7b551ace988dc89d3133826f3f6b0ce6986.

Change-Id: I7693a12167846f1e6df72b74acb22a5c088356c3
WallpaperCropper requires these permission.

Without these it just crashes lockscreen wallpaper.

Change-Id: I25c676244a919ed355e02664828ddd79dd327062

Patchset: 4
http://review.cyanogenmod.org/#/c/64824/4