More cleanup boot device detection code.

- remove old netboot detection code using bootarg
- use more proper macro
- update some comments
- constify