Make Board::ToString() a const function.

How was it already not const!??!
Add "encode-history" and "decode-history" gtp commands.