MusE GAs FLOw and Wind (MEGAFLOW): XII. Rationale and design of a Mg II survey of the cool circum-galactic medium with MUSE and UVES: The MEGAFLOW Survey