Implemented basic game loop.

Nothing rendering yet, but this allows for a simple frame with
the update/render loop in a separate thread.