Ported a bunch more non-graphics code over.  The AI class is the only non-graphics part yet to port.  Lots of it is still likely to be broken/buggy.