Add a handler for changing the boot environment.
Merge pull request #263 from VictorLowther/add-boot-order-changing-hooks

Add a handler for changing the boot environment.