Mechanisms of Tyrosinase Mediated Crosslinking Reactions Enabling the Synthesis of Hydrogels with Potential for Pharmaceutical Applications