Decoupled bson Serialization

Made the cache bson independent in order to increase flexibility. Will
eventually incorporate memcache into the Storage layer.