XZDR KitKat changes plus various bits to open up a ROM once it runs our advanced stock kernel.

KitKat changes implemented for locked bootloader devices
Small left out change, this makes sure that even if the recovery is faulty (not XZDR 2.7.99 or higher) it is able to flash the latest without issues.