QUIK: Small cleanup to prom.c

Rename/move stuff around.

Signed-off-by: Andrei Warkentin <andrey.warkentin@gmail.com>
QUIK: Cleanup.

Move ELF handling out, and make error handling prettier.

I like pretty things.

Verified that the latest Debian installer still boots.

Signed-off-by: Andrei Warkentin <awarkentin@vmware.com>