Refactor to make CookieJar iterable.

Hello @alexcrichton. I'm trying to make CookieJar to be iterable. It is related to #155. Can you please take a look and maybe suggest something more right.