Added die flagging mechanism

Added infrastructure for dealing with die flags. Added logic for signalling that dice have just been captured.

Addresses part of #193.

http://jenkins.buttonweavers.com:8080/job/buttonmen-blackshadowshade/158