Cleanup of examples, and new cookie example.