Move bootretry code into bootretry.c and clean up