Designing spatial and temporal control of vaccine responses