Initial implementaiton of the gptprio 'next' command for grub.

This is the real deal, the thing we need to replace `cgpt next` and kexec with a bootloader that knows which system to boot in the first place. :-D
Needs a check to protect against freeing NULL.