Rewrite terrain signal handling.  It now supports a success rate (which may be modified by stats), and custom success/failure messages.  Change terrain.dat to match the new format.