Initial spike on cookie support
More cookie work.
Better docstrings