Prevent DOM updates after unbinding.
A little more robust implementation.
Refactored machine token creation and rendering code to remove duplication.
Merge pull request #548 from kadams54/destory-service-1368560

Prevent DOM updates after unbinding.

Corrects bug https://launchpad.net/bugs/1368560. DOM updates were happening on a timeout for debouncing purposes, but that meant that they might happen after the DOM elements being updated (i.e., the databound DOM elements) were removed/destroyed. This change makes sure the timeout is also canceled as part of destruction.
Fixed disabled links still working due to events not attached properly.
Merge pull request #549 from huwshimi/disable-destroy-links

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.