Cookie support

I needed cookie support in my app, so I added it to the lib, pull it if you want to!