Update ftp_server.cpp

Added function prototype at top, moved code below main.