Martha Coakley is getting used to wearing two hats. For the past month, she’s had to balance her duties as Massachusetts Attorney General and her campaign for governor, which takes her to cities and towns across the Commonwealth.