Corrected handling of server output

The output from the Starbound server (stdout and stderr) is now handled
correctly and does not cause the monitor thread to hang.
Changed some thread execution behavior

Added some proper thread start code and unregistered some event handlers
when the thread is about to stop.