Amherst, developer near deal on long-stalled reuse of Westwood site