split cookie feature into Plugin::Cookie