Moved autorun related stuff to own file
Removed fork on connect, as the server's sockfd was being closed when the fork exited.