Just four years ago, Foster High’s test scores were low and morale lower. But in a dramatic turnaround, achievement now is way up, especially in math.