URL encode paths for curlftpfs

If a directory name on the ftp server starts with a # curl will list just
the directory before the #, resulting in an endless loop.
Add .gitignore
gitignore ~ files
Copied from curlftpfs
Handle symlinks with httpostfs
Updated acinclude.m4
Compilable
Create empty file when opening file with O_CREAT, even before writing to it
Will this fix closing error?