separated local and remote into threaded methods. added includes for threading and added thread creation for both threads.
Merge pull request #2 from rgibson518/master

separated local and remote into threaded methods. added includes for thr...