Improve cookie interface in preparation for public release
Add back top-level core tests, more godoc