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.
Bugfix for SearchController.refresh for highlight-only annotations

It broke when the annotation.text field was empty
VS fix
Bugfix for on_message(): separate try-catch for each annotation for past data

Before this, if there was even one error when trying to update annotation data, when loading back past annotations via stream, we whole stream got broken.
Now each annotation was its own try-catch block and the problematic annotations do not get published.
Fixes #633
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)
When making a Highlight in HL mode, switch sidebar view

... to single view, showing only the newly created highlight.

(First attempt to fix #461.)
Merge pull request #645 from hypothesis/641-hl-mode-change-view

When making a Highlight in HL mode, switch sidebar view to single mode.

Fixes #641.
whitespace
Consolidate app and views modules

This distinction was never useful. Initially, I had thought that there
would be a site and an app but now it's clear that the site is an app
and this distinction is unnecessary. The file is not so long that it
shouldn't just be one and it keeps all the controllers together which
might make it easier for newcomers to find things.
Some cleanup after my test refactoring
Add a logout function to the tests

Also use [position()=last()] selector so as not to break if we
ever add multiple signin.
Need to sleep the iframe animation now

There seems to be some kind of regression with the newest selenium
in which switching to the iframe successfully requires sleeping for
the duration of its opening animation.

This is a PITA.
Allow the Annotator test context manager to nest
Correct test for new selenium fixes
whitespace
unused import
Merge pull request #637 from hypothesis/restore-edit-reply-delete-for-search

Restore edit reply delete for search