Sort the autocomplete result set to put promoted charms and charms with the same series as the environment series at the top
Convert envSeries attribute in the charmbrowser to a callable to be able to fetch the currently set default env type
Fixed failing tests from changes and added test changes to test the sort order of the result list
Dispatch unit details for unit 0.

QA: deploy a service, click on its first unit on the inspector:
the unit detail panel should show up.
Merge pull request #464 from frankban/unit-0

Dispatch unit details for unit 0.

QA: deploy a service, click on its first unit on the inspector:
the unit detail panel should show up.
autocomplete list shouldn't try and sort bundles as they are series agnostic
Merge pull request #463 from hatched/ac-result-sort-1348290

Sort AC search results by default series - Fixes #1348290

The charm search autocomplete now sorts the results returned from the charmstore so that the promoted charms which match the users default series for their environment are listed first.