Refs #38: implements the cookies API on the phantom object