Even more background logic added.  There's still a lot of little bits and pieces to put together (especially in regards to actually updating the GUI panels, since I don't have those to touch yet), but it should be fairly straightforward (see all the TODO's for more info).