Made uploader into a class.

Converted the FTP upload function into a class. This should make it
easier to do uploads in an asynchronous thread.