several fixes, added basic auth support, added put delete http method, fixed cookiejar, cookiefile naming