Add hex ⇔ binary conversion functions

Also “cleanup” the other conversion functions (no need to source bash init file).