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/
Separate Android Encryption Password from Lockscreen Password

This permits the use of a different (hopefully longer and more complex!) encryption
password, while using a simpler (and easier to type) lockscreen password.

Change-Id: Ia35fdcc769eee8fd7891678a532dafa0f4b3ba04
QS: Fix on tablets at first boot up wrong orientation detection if landscape

on tablets where it is possible to boot up in landscape no configuration
change is triggered hence we cannot read the current orientation. Workaround this
problem and read on first bootup the screen size out

Fixes: http://forum.xda-developers.com/showpost.php?p=48768480&postcount=372

Change-Id: I816ae80beaa26b8de0e929017273ebee4e44cab9
    fb: after fixing the root cause remove implemented lock

    after the root cause of the before triggered problems on
    recreation was fixed with this commit

    https://github.com/SlimRoms/frameworks_base/commit/36b309f4ecc38fdd0a06bac7cfd67965b3f1f447

    we can roll back the lock changes we did which had as well some unwanted
    side effects.

    Change-Id: I138068ffe0a688cef6cc0bdbe2b581b492e0b795

Change-Id: I6bd23b56a1f5e274749a7996e987c5c0fabf2aba
Merge branch 'cm-11.0' of https://github.com/temasek/android_frameworks_base into cm-11.0