Bastion: wiring up ui state machine for nutupane.

Using a state machine to keep track of whether the "action pane" is opened, etc.

**Do not merge.** Just wanted to open this up so @ehelms can have a look.

- [x] Add relevant states
- [x] Get nutupane details opening and closing
- [ ] Add tests
- [ ] Update documentation