Base: Fix ActiveDisplay problem

this commit base from
http://review.chameleonos.org/#/c/2728/
http://review.chameleonos.org/#/c/2727/

also some changes to follow kitkat changes
fix double unlock keyguard
fix ActiveDisplay never disabled after using turn off display option

Change-Id: I1d178875c2643e872da40cae9781313fca53a6a5

Patchset: 1
https://gerrit.omnirom.org/#/c/4205/