Frameworks: Ability to Enable/Disable the Lid Controlling Sleep.

  * Include logic so that if the lid does not control sleep
    it will not control unlocking of the device.  This prevents
    the case of the lid not waking the device, but unlocking
    the device.
  * Still allows the use of Smart Cover window.  Even if lid
    is not set to control sleep, waking the device with the
    Power button will display the Smart Window information.

PS4: Add import android.view.WindowManagerPolicy & Fix Build - Thanx Davor ;)

Requires: http://gerrit.aicp-rom.com/#/c/3240/

Change-Id: I83d96696fefedc19fc3bce7265a4fcf2d4c894bc
Merge remote-tracking branch 'ap/kitkat' into kitkat
Tinted: Update to latest https://gerrit.omnirom.org/#/c/9723/

AICPfy
PS1: Update to PS5
PS2: Merge in leftovers
PS3: More

Change-Id: I7b8506dc3e0ea46f6229a41062dd9e2e247c13d8
Hover: open app in fullscreen on longclick

As requested in AOSPA-793

Question to discuss: is there a better way than a longpress?

AICPfy

Change-Id: I0d8dc82e22717641e93fc279206635bd9de31f6d
Themes: Force recompiling common resources when scanning theme

If a theme is re-installed multiple times and in less time than
the 3 minute timout for common resources, it is possible for the
installation to fail because it does not compile the common resources.
This is not something an average user would encounter normally but
theme designers that are working on there theme and constantly
installing updates have a better chance of encountering this situation.
We simply remove the theme from mAvailableCommonResources which will
allow them to be recompiled.

Change-Id: I04b64645157dbb1d0c26fab95c851b34bfff3f42
Revert "Hover: open app in fullscreen on longclick"

This reverts commit bfbfe16cf1d28055442771da139df2b0413f5250.

Change-Id: Ib8a182704a42cbaeda6e89dc1240f200d80027bb
Merge "Revert "Hover: open app in fullscreen on longclick"" into kitkat
Merge remote-tracking branch 'ap/kitkat' into kitkat