more headless fixes

Change-Id: I25243f67b8bcbef41867497b442d1b7f38f638dd
Remove "fix permissions" option

Original discussion here: http://review.cyanogenmod.org/45559

Patchset 2: really remove the option
Patchset 3: fix options that I broke on ps2

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I54877a24444c24a296c8c044efd977f30cc66de4
Add power off & reboot to bootloader mode in advanced menu

Also:
Cleanup leftovers from previous poweroff option
Always ensure a clean reboot (Thanks to PhilZ for his implementation)

Bootloader option defaults to "bootloader" (fastboot mode), it can be overriden
by defining "ro.bootloader.mode=download" prop for samsung download mode
We leave reboot to bootloader option always enabled, that way we can
override the get_filtered_menu_selection bug that breaks the order
of the options when NULLifying menu options.

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I6d674b37ab41ab342b105993719277360b4707e4
Recovery: Add support for automatically checking and making loki images
for locked bootloader bypass on loki supported devices. Loki support is
enabled with ENABLE_LOKI_RECOVERY.

Change-Id: I81fe267d58f0dda18a790e25df223f011dca3e37