Initial support for TWRP and misc cleanup

Signed-off-by: Varun Chitre <varun.chitre15@gmail.com>