A promising alternative to natural gas has been taking root in Massachusetts — underground pipes and wells that tap into geothermal energy to heat and cool buildings across a neighborhood. But late ...