EFI support

* Add EFI support
* Add postrm
* Allow legacy BIOS installation
* Several bug/cosmetic fixes