Make the MT searches use an atom for state.

This turns out much simpler than passing an updated transposition table
around everywhere.

I also brought in core.cache for the transposition table, to allow an
easy size-limited table.