i ride them normally the first 5 months of pregnancy. After that i ride them real easy. and the last 60 days i don't ride them at all.
after foaling, as nrhareiner said, give them at least 30 days to recover. i often wait 60. the baby can follow you as long as you are in a safe place and no other horses around. but be careful not to overdo the baby's exercise. they run and play just fine on their own, but can stop when they need to. if mom is running too much, they will run their feet off to keep with her and that is NOT good. so go easy and watch for signs of fatigue. babies lay down often to rest. not good to keep them up too long.
i wean at 5-6 months, but i have many friends who do it at 3-4. kind of depends on the mare and the foal.