New Hampshire school looks to community in turnaround