Add initial render loop code.

There's no actual rendering here yet, just a bare skeleton.