Various bug fixes.
Fixed migrations bugs. Improved handling of search tables after first load. Fixed editor controls.