huge ass commit. fixed message loop, fixed idle CPU utilization (switched to blocking sockets + more threads), console input, good stuff