Opaque keys common lib xmodule

@sarina @dianakhuang @flowerhack @cpennington