Just checking Google maps, I could see that Lewiston wasn't terribly far from Portland, it wouldn't be that bad of a commute, and more $ stands to be made in Portland due to it being a nicer part of town. However, Wilton to Portland is too long of a drive. I liked some of the houses that Realtor showed in Lewiston, and that's where most of the job opportunities are with the company.
I saw they have a nearly 8% income tax and like a 5.5% sales tax. TN has no income tax and a 9.25% tax rate, so TN is fairly affordable. I checked how much it costs to live in Maine and it showed a single person with no kids could live on about 36k a year and the opportunity I'd really like would pay about 64k a year (Wilton) and the nicer one in Portland will pay likely closer to 70k or maybe a little more a year. The opportunities in Lewiston would likely pay around 55 to 60k a year.