Support removing items from the memory cache by Uri.

Refs #77. Refs #775. Refs #437. Refs #246. Refs #438.

@dnkoutso 
cc @mattprecious 
nit extra line.