BOSTON — The historic Powerball prize claimed by a Massachusetts woman this week has focused new attention on the state lottery, a vital, if not always well understood, cog in state and local government.Lottery officials were beaming Thursday when Mavis Wanczyk, a 53-year-old hospital worker from Chicopee, emerged as the sole winner of the $758 million jackpot — the largest ever won with a single ticket.