added mechanism to maintain cookie persistence when app is exited
added .gitignore