Much of the M train will be shut down nearly every weekend until June in preparation for two big construction projects.