Added support for uploading parsing metadata files, uploading entries
in metadata files as well as the files themselves, uploading files in
directories other cwd, and improved error handling.