Many positive changes.

Pieces are now generally const *'s throughout.
Fixed a bug in search that caused searches to fail miserably when white
moved first.
Still todo: get piece promotion through movelists working.
Threads now starting and stopping without barfing.