In New Hampshire, past presidential hopefuls campaigning at small-town events have defied expectations and changed the trajectory of the race.