Add XZ compression to zimage and some optimizations

Merge this beauty LOL