Add support for persistent variables in theme's <variables> section

* Add support for variables with persist="1", which will cause
  them saved into settings file and reloaded on next boot.
* This is handy for theme makers, who can use this to
  implement "theme settings".

Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I6415979011b38cbb15dec9909c445b02da6eadc0
Merge "Add support for persistent variables in theme's <variables> section" into android-4.4
Create a TWRP Disk Usage Class to retain state about a directory and whether we should skip it in other classes like twrpTar.
Moved Get_Folder_Size to this new class.

Change-Id: If0a0220f900eb109581f2eeaf7b76e3f7d6886f1
Improve SELinux support check

If the kernel does not use SELinux security then the ramdisk
contents will not have contexts set on the files, however we may
still have everything we need in recovery if the kernel supports
EXT4 security labels, so we try to check /cache/recovery if it
exists first.

Change-Id: I96a4ae16418e07b0a2e83cd56e19893898d0b394
declare dir for non data/media devices

Change-Id: I60e2e2a880c3bd5fff3f485f7c8e4ac9ab6fd3bd
add errno.h to fix compile errors on other devices

Change-Id: I84196fb1358264b216b8505b990ae5a0406aa957
Don't interpret ABS_MT_TOUCH_MAJOR == 0 as touch release

On n8013 at least, this event is sometimes/often sent on touch start which
causes touches to be randomly rejected and throws you back to the start screen.

Touch releases still work fine for me, since it sends ABS_MT_TRACKING_ID == -1
for that purpose.

Adds a flag TW_IGNORE_MAJOR_AXIS_0 to configure this behavior.

Change-Id: I14bb036a2c2d4ee676b642c3ab297c55bb6c2084
Fix white point on top-bar images in some themes

Change-Id: Ic6a0b4b3e41818ff510ca652d5f14bdecd531826
Initial 240x240 theme

Change-Id: I478f172e1a549b50ebe29cf9a8b8618a84b3cb17
Merge branch 'android-4.4' into twrp2.7-safestrap

Conflicts:
	minuitwrp/Android.mk
	partition.cpp
	partitionmanager.cpp

Change-Id: I21e014ee4dfbec0510cc003da102e9db7a39c74e