Add Sandcastle.reset

When defined by a demo, Sandcastle.reset is called whenever a button or menu selection is main.  This allows for the bookeeping/cleanup code to be cleanly abstracted away from the example-specific code that the user is interested in.