Fixing cookies issue (closes #70 and #76)
Adding cookies demo; some cleanup