Improvements, workarounds, fixes on the APT handling inside and outside the chroot.

Cache() now (mostly) works in both situations, unlike the upstream apt.cache.Cache().

And that's so fuckin' great.

Also, grub-efi installation now works correctly.