Bastion: wiring up ui state machine for nutupane.

Using a state machine to keep track of whether the "action pane" is opened, etc.