Added cookie example and added more to .gitignore

The files added to .gitignore are all automatically generated.