John McAuliff won against a Republican by focusing on something affecting all his constituents: the cost of energy