fixed #314. callback that sets agents cookies is now executed before users callback in .end()

Had to rearrange request.on('response') listeners to save cookie before users callback passed to .end() is executed. Otherwise consecutive request doesn't send cookies.