Got network connection working on a background thread. Updated peerconnect.swift to connect to localhost.
Moving Thread into its own file.