Massachusetts Governor Deval Patrick has signed legislation that will give the state oversight of online-based public schools.