Framework: Show advanced reboot menu only if device is unlocked

The advanced reboot menu will only show if the device is unlocked.
Otherwise
the reboot entry will allow the user to simply reboot the phone.

PS2: Reverted changes done to
core/java/android/view/WindowManagerPolicy.java
PS3: Removed tmp file which was created by gedit..
PS4: Only show reboot options if unlocked or not a secure lockscreen

Change-Id: I6f98eca87fa392d2f9aa918f2d3343d1489fa5fd
Signed-off-by: Parthipan Ramesh <parthipan.ramesh@gmail.com>
Remove Slim QuietHours 1
Squashed commit of the following:

commit 48a49e69eafcfa595d343433685606790b9b7bfe
Author: MrBaNkS <banksmi09@gmail.com>
Date:   Thu Jul 31 21:52:10 2014 -0500

    Revert "Base:Quiet Hours[1/2]"

    This reverts commit 69c3fe89261b26e3562c1fde50c9943983ecc70a.

commit 5ad2427114164a3564984e8ba93e2fc22335806b
Author: MrBaNkS <banksmi09@gmail.com>
Date:   Thu Jul 31 21:33:54 2014 -0500

    Revert "Battery led needs to respect quiet hours"

    This reverts commit 7f50c437ebb5f9b990dda882c877f1a495884f38.

commit 76de78ef85bfddf005c48d2da866809d0e7492d2
Author: MrBaNkS <banksmi09@gmail.com>
Date:   Thu Jul 31 21:33:12 2014 -0500

    Revert "Frameworks: Quiet Hours Automatic Switch (1/2)"

    This reverts commit 02e727b841bb77bf18ab891e1f6b02e97e931871.