Add game_getpath RPC command.

Create a new RPC command game_getpath that makes the internal shortest
path algorithm accessible to front-ends.