Degradable biomaterials with elastomeric characteristics and drug-carrier function