Refactored out some of the FTP connection routines for connecting and accepting to a separate small
API.