Moved UI to a UI class. Added stats section.

UI is now in a special UI class with its own think function. currently
renders properly and show some statistics for how it's doing. Also
supports cleanly quitting with q.