add callback to set cookies for the response object
Merge pull request #10 from PeerJ/9-Cookies

add callback to set cookies for the response object