Streamlined cookie API

Signed-off-by: Peter Nelson <peter@peterdn.com>