added cookie support, fixed a bug with headers, and modified security gr...

...oup assignment