Make Cookie serializable

Signed-off-by: Andreas Tolfsen <ato@mozilla.com>