Port Shelnutt's loki patch from CWM to TWRP

An option is added to the settings page where a user can choose to
enable loki on-the-fly support (enabled by default).
If enabled, TWRP will verify and patch recovery and boot partitions
after flashing via a flash file or adb_install.

Conflicts:
	adb_install.cpp
	compact_loki.c
	compact_loki.h

Change-Id: I17cf1d00c6ee59424e90773d751efa061bc668b3

Conflicts:
	Android.mk
	data.cpp