Design of improved therapeutic proteins and novel protein-based nanomaterials