Recovery: Loki patching support

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

Conflicts:
	Android.mk
	adb_install.c
	common.h
	extendedcommands.c
loki: Update to 2.0, Add support for LG G2 (and device trees in general)

Change-Id: I5bbd6bd7239680f20880ac6fdf7744e2e47b39ac
Loki updates:

* update to v2.1 + sync to latest sources
* fix broken LG devices + add new ones
* proper code for recovery
* do not lokify after a failed adb install
* use original loki format sources for easier future updates
* fix all compiler warnings

Change-Id: I4f19edc492a1105c2b91c579f295876a4dc313b2

Conflicts:
	Android.mk
	adb_install.c
	common.h
	extendedcommands.c
	minui/events.c
loki updates:

- fix fstat could fail on getting open partition size
- sync latest sources to support new devices
- match original loki upsteram sources
- fix all loki_recovery compiler warnings
- one binary for all functions patch/flash/find
- Makefile and Android.mk to compile new multi-binary tool or lib
Change-Id: I050a673f39b32136c817b69c00939818696e2c56