Apply final machine view rendering fixes from bad rebase.
Merge pull request #286 from huwshimi/fix-rebase

This is the final set of changes meant to be in the machine view rendering branch that got lost in a bad rebase.

This branch adds missing code comments and also sets the header labels through the widget setLabel rather than poking at the DOM. This required refactoring how we set up the headers so we can access them directly.

QA:
Add or remove some machines and the machine count in the header should update correctly.
Selecting a machine should set the container count correctly in the container header.
Added changes to deployer bar

- Track when new things are done
- Track the number of changes
Disable deployer bar tests for now
Merge pull request #288 from mitechie/qa-deployer-bar

- Track when new things are done
- Track the number of changes
Add drop states to the machine view headers.
Machine and Container tokens can now be marked as uncommitted.
Global units model list.
Merge pull request #290 from huwshimi/machine-view-uncommitted-state

This branch adds the ability to mark and unmark machine and container tokens as uncommitted.

I did a bit of style refactoring to remove the duplication between the two tokens.

This is not currently hooked up to anything, but is there for when we introduce the uncommitted state of these tokens.
Merge pull request #291 from huwshimi/header-drop-states

Adding in the drop states in the machine view headers. These states are not currently hooked up to anything, but are ready for when drag and drop is implemented.
Merge pull request #282 from frankban/unit-list

The db.units lazy model list includes all known units.
Also implement helper methods to add/remove units, and filter them by machine/container.

I was not able to properly live test this, but I am still proposing the code in order to unblock other branches.
For this reason please be very meticulous when QAing the branch: all the units-related GUI parts (showing units in the inspector, adding/removing them) should be tested for regressions, in both sandbox and real environments.

This does not include changes in the machine panel (wire service unit tokens etc.): the diff is already too long (my apologies). I changed my card description and created another one in "Ready to code" to reflect this.
Correct issues around hiding/showing details.

When hiding/showing charm and entity details, there are a host of polish
issues related to the state changes in the il flag. We lost the smooth
animation of the details panel sliding out. The panel contents weren't
being destroyed properly on close. Clicking between tabs would trigger
re-renders and mess up the hash in the URL. All of these issues are now
fixed in this branch.