The Boston Marathon drives more than $509 million in state and local economic activity during Patriots’ Day weekend.