Performed some code cleanup

- removed bogus cookie parsing code
- removed hard-coded headers