Store $wgMemc as an instance variable in CachedGadgetRepo

Change-Id: Ibb0963097b01132f1db8854b0cd199bad578a113
Merge "Store $wgMemc as an instance variable in CachedGadgetRepo" into RL2