Cookies

@s-panferov I think this handles everything.

cc @reem