Major Table Update

Completely overhauled the way the script handles Tables.

Currently untested and unproven.  Probably has severe bugs, but it's
getting close.