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
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.