common/moves: split bit-related funcs into bits.h
minor fixes all around
fix FLIPBIT build
main: remove lower bound of 100ms

This was pure crap
main: xboard: correctly ignore messages
board: incrementally keep amount of each piece
board: add basic insufficient material checks