Mechanisms Regulating Immune System Development and Function across the Lifespan, and in Response to Infectious Pathogens