Added beggining of user threads
Broke main function out of telnet. Changed build target.