Add CookieHelper class

This class takes in any JSON serializable object and turns it into a
cookie. This comes in very handy when attempting to create ones own
authentication policy that needs to store a cookie.