Remove old initialisation code from hashfast, use hf protocol library where possible and prepare for new driver model.