Shorten restPostCreateFile, fix folder creation.
Added API function to list folder contents.
Minor cleanup.
Added API function to download file.
Added API function to upload file.