modified put_file to use a single connection
modified username/password to use a single accessor in Curb