better debugging

- added error reporting in the board and client code
- decklayout now uses mutators to trap append/removeChild
- split queryLocation into queryFirstLocation (returns 1 restult) and
queryLocations (returns an array)
- fixed bug when taking opponents pit, if my last pit lands in an empty
home pit
- added a win game check