sample cookie functionality added

currently only an [Object object] cookie is created. need to parse the
object map to string and create a reverse parser - to extract a map from
a cookie and create the cache object.