Restore edit feature for page search results

By default it showed and edited the highlightText property of an annotation not the text. Besides that the only thing to do is to rebuild the highlighttext after the text has been edited.
Restored reply functionality for page search results

The editor itself was shown, but the surrounding div tag was hidden.
Bugfix for rebuildHighlightText()

It tried to apply regexps even when they were not set.
VS fix
Bugfix for SearchController.refresh: highlightQuote was not refreshed

After changing the search term from a quote to another, the quote highlights were not refreshed
Correctly show or not show quotes for page search results

The page_search template assigned a bad variable for ng-init to collapsed, so it was always showing the quotes for every search results.
It is now fixed. (Showing only for quote matches)
Merge pull request #637 from hypothesis/restore-edit-reply-delete-for-search

Restore edit reply delete for search
Bugfix for page search facet: used the term 'area' instead of 'scope'

The old name of the facet scope was called area. In one place it was not renamed.
Remove accept predicates on json routes

By having accept predicates for 'text/html' routes and leaving them
off for json routes the html routes becomes more specific matches.
In many cases, crawlers or scrapers, such as the Facebook thumbnail
and summary generator, may send "Accept: */*", or at least fail to
include the wildcard MIME type with lower priority than an explicit
'text/html'. In this case, the previous configuration would return
JSON.
Revert "Remove accept predicates on json routes"

This reverts commit c161d7212ef8f96d35e5d2b3bd71798a189dd309.

Unfortunately, this change means that any request which has both
'application/json' and '*/*' gets the wrong type.
Combine some conditionals in auth change
CSS tweaks for tags, search, and other small things

 * Gave tags square corners, made them smaller, and slightly opaque.
 * Made tags left justified with text above and below.
 * The topbar is back to its original height
 * Old: The "share" url box no longer obscures the controls along its lower edge.
 * The space between different facets in the search bar is now a touch tighter.
 * Put highlight and lock icon on same line as username.
Merge pull request #656 from hypothesis/CSStweaksV1-2

CSS tweaks for tags, search, and other small things
Draft support for annotation editing and highlight-mode switching

 * Annotation currently being edited are added to the drafts
 * AppController.toggleHighlightingMode() checks for drafts before continuing
 * Fixes #628
Revert to upstream tag-it

We have added a few enhancements of tag-it,
but since we have stopped using them, there is no point in keeping
them. Therefore I am reverting to the unmodified upstream version.
Stop flattening the tags to lowercase
Clear searchbar when switching back to Viewer.

Added a $routeChangeStart handle to the AppController which checks if we're to go back to the Viewer then it clears the searchbar and also clears the search query from localstorage
A solution for #643
All sibebar annotations' username is now a link to the users userstream

In the annotation template all user name is a link tag, with a href calculated by the new userLink filter.
Part of the solution for 523
Create directive for displaying the user name
Added case_sensitive property for streamer clauses

Now we can set case sensitivity for the streamer search properties. The clause evaluation in the FilterHandler class looks for this property and compares accordingly. The streamfilter.coffee was also extended to handle this new property.