scripts: add selftest.sh
eval: split king safety
eval: remove idle threshold
search: lmr: tidy
search: lmr: change conditions
ai/eval: fix misc bounds

And delete sort depth threshold
addon: tt: fix params and entry size
search: fix comment
moves: remove hash from hstack
search: remove mention of doing_lmr
search: fix comments and remove some asserts
ai: remove fuzzy threshold and up promote score
search: fix asserts
addon: trivial: tidy up
search: change curDepth/maxDepth to depth
all: use pointer to moves
output fixes
addon: trivial: rank according to piece
search: null move: loosen conditions