Move function declarations from common.h to hb.h.

The functions are implemented in hb.c.