More state machine modifications.
State machine system used function types instead of strings.
Started adding STATS to Lua.  First real table of records in/out code.