Hydrogen purification & capture