Engineering protein reagents and pathways for in vivo and in vitro hydrogen production