Disable destroy links

Fixes bug #1368592: disabled links were still working due to events being attached to click instead of listening for the fired event.

The machine token creation and rendering code has also been refactored to remove duplication and allow the event attaching code to only be added once.
There is a method `_isMachineCommitted` that you should be calling. It essentially does the same place but it's one less place to update when the branch which I'm working on that adds a `committedStatus` attribute lands.