A developer and a horse breeder wanted to build a racetrack and offer sports betting in the small town, which is about 20 miles west of Worcester, Massachusetts.