Run main loop in a separate thread
Add graphics helper

* add GUI elements
* add FPS counter