Study of the Hydrogen Evolution Reaction Using Ionic Liquid/Cobalt Porphyrin Systems as Electro and Photoelectrocatalysts