Added cookie capabilities

Added cookiefile and cookiejar parameters to constructor, required if you need to save cookies between requests