box2d

A lot of small improvements. Also table now imports box2d only if there
is a newer state than the current table state.