All of the code to make this thing run.  I intended to do this in more commits, but never really had anything that was solid standalone, so here it is.