All credit goes to @carhartl, the maintainer of jQuery.cookie, of which this is a derivative work.
a port of the ever popular $.cookie as an underscore mixin