Completely rework state.go and mechanics.go as chess.go

Read: "Break everything so nothing works until you do it right."

That is, there are a lot of renamed functions and such that haven't
yet been updated elsewhere.
move sources to src directory
throw out tables.go
more rearranging