core: main: add ability to build GRUB sideload image for debugging

also globally enable gzio and tar modules
rewrite build system