Bastion: wiring up ui state machine for nutupane.

Using a state machine to keep track of whether the "action pane" is opened, etc.

- [x] Add relevant states
- [x] Get nutupane details opening and closing
- [x] Add tests
- [x] Update documentation