Molecularly engineered hydrogels for implant biocompatibility