Added patches from TWRP main tree

* Fix placement of Android Secure and SD-EXT on wipe page
* Do not set contexts during a factory reset
* gui: Disable unnecessary checks if TW_CUSTOM_THEME is defined