cleaned main.py, add outgoing thread

~Cleaned up main.py so testing would be more clear
+Added a new thread class for the client to process outgoing things and
to keep the main thread clear for other work (GUI or something else?)