Add actual main loop

Add the rough version of the main loop.  This also includes stub
functions for each of you to tie your stuff into.