remove log tail code
remove unused modules
remove trailing whitespace
use pty.js for server output, and always RCON for input