A data center can strain a town, but a tough deal can deliver tax relief, school funding and lower bills.