Perlenspiel 3.1.8

Merged the 3.1.8 changes into master.

This includes a new interface method, PS.gridRefresh().