Refactor event handlers into extension.
Merge pull request #628 from kadams54/added-services-db-refactor

Refactor event handlers into extension.

Also wrap tests around the event handlers.
Update the masthead to match the latest mockup
Fixed failing test and lint issues
Merge pull request #629 from hatched/masthead-updates

Masthead updates

Masthead has been updated to resemble the new mashead mockup https://www.dropbox.com/s/zfhwx0k5nbehub8/juju-gui-header-01.png?dl=0
Update the added services template instead of re-rendering it
Added test to make sure we don't re-render the added services template on updates
Merge pull request #632 from hatched/as-summary

Don't re-render added services templates on updates

The added services template was getting re-rendered changing the container elements of nested views. This was causing the environment counts  element to blank out when changing from service view to machine view.
Switch from events to setting service flags.

Instead of firing events on the topology, we're switching to setting
flags on the service and unit models in the DB. That way the data is
persistent across state changes (i.e., when a user switches from
service view to machine view) and we maintain one single source of
truth.
Machine tokens are correctly shown/hidden when the user modifies the triggers in the added services sidebar
Unit token rendering now correctly respects when units have been highlighted, hiding the others
Fix toggling between states.
Only allow one service to be highlighted at a time.
Merge pull request #631 from kadams54/added-services-db-refactor-2

Switch from events to setting service flags.

Instead of firing events on the topology, we're switching to setting
flags on the service and unit models in the DB. That way the data is
persistent across state changes (i.e., when a user switches from
service view to machine view) and we maintain one single source of
truth.
Merge pull request #633 from kadams54/toggle-highlight

Only allow one service to be highlighted at a time.
Display the services proper display name in ambiguous relation dialogs
Split up the ambiguousAddRelationCheck method to make it easier to test
Offset fix per Ant.
Update "More" menu as requested in bug #388856.
Merge pull request #635 from kadams54/tooltip-offset

Correct notification tooltip offset to match up with notification count.