Updated controller with threads for ui and network handling
 - Using tsuqueue for event handling
 - Ui thread listens to stdin for commands
 - Network input listens for network packets