A planned speed increase for trains in Maine, from 25 mph to as fast as 40 mph, is raising questions about safety in towns along the tracks.