added cookie handling
minor fixes
Merge remote-tracking branch 'choose_remote_name/master'