Made the view thread and the main view loop
Separate module for view types
Switched to using vty-ui's event loop