WIP: Initial conversion to use REST API instead of FTP server