Port mainline commits up to date. Changed boot partition's flag so that it can be wiped. Fixed SetupTwrpFolder() function.