Fleshing out AI infrastructure.  All unit tests passing.