Design of immunoactive biomaterials for therapeutic applications