Fix #1 bug and added parse cookies

sorry, but it's not enough to add support of multiple headers with same names. Look at sending methods and seeking of existing headers - they should be changed too (I don't ask about it, just to mention what is needed to add this support).