Initial commit of upload script. Still a work in progress.