Overhaul view and sort behavior

Big changes to view, sort, routing, filtering, etc, etc, etc...

Todo
-------
- [x] stream search -- race between $scope.updater and stream controller, need to send the filter
- [x] page search -- simple matter of fixing the ugly ng-show conditions at the bottom of the viewer template perhaps with more verbose, obvious variables, or scope/controller functions to abstract the route details from the template a bit
- [x] Check on https://github.com/hypothesis/h/pull/1436#discussion_r16705832 (leave as is 2014-08-29)
- [x] Restore "no results for “query”" message.
- [x] Annotations don't watch for changes
- [x] forced login -- a comment about ideas for that [here](https://github.com/hypothesis/h/issues/1020#issuecomment-53400218)

Okay, okay.
I was being tricky with a hyper-local variable rather than put it as the
constructor scope. The double underscore was to reinforce the idea that
it's only local and static to this method.

01662c63209ce1a8fb18c263ae83b8e1e2fb5a89

On Tue, Sep 16, 2014 at 3:54 AM, Aron Carroll <notifications@github.com>
wrote:

> In h/static/scripts/directives/deepCount.coffee:
>
> > +    parent = $element.parent().controller('deepCount')
> > +
> > +    ###*
> > +    # @ngdoc method
> > +    # @name deepCount.DeepCountController#count
> > +    #
> > +    # @param {string} key An aggregate key.
> > +    # @param {number} delta If provided, the amount by which the aggregate
> > +    # for the given key should be incremented.
> > +    # @return {number} The value of the aggregate for the given key.
> > +    #
> > +    # @description
> > +    # Modify an aggregate when called with an argument and return its current
> > +    # value.
> > +    ###
> > +    this.count = do -> __cancelFrame = null; (key, delta) ->
>
> I'd prefer this broken onto multiple lines, also why the double underscore
> here? counterFrame is a perfectly good variable?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/hypothesis/h/pull/1436/files#r17594438>.
>