Add the cookie class and some encoder. Plus a constructor to zero all
the fields.