Added cookie and url parameters

Added possibility to add cookies and set the service url.