Med12 regulates ovarian steroidogenesis, uterine development and maternal effects in the mammalian egg.