ftpfs: add debug-switch when debugging curl
ftpfs: centralize resetting of curl options to avoid missing to reset stuff
ftpfs: add curl_put for writing
getdir: fix broken printf() of debug message
ftpfs: implement mknod
ftpfs: proper return codes for bad fd in read() and release()