Fix upgrading reviewer account to full privileges

The "upgrade_reviewer_to_real" method hadn't been upgraded from when
the account had an "organization" attribute so was throwing
errors when it attempted to write to it.

This no longer updates any old annotations to the new organization.
Our thinking is that since annotations were left by the reviewer
for the inviting organization, they should remain attributed
to that organization.
BOOLEAN search terms need word boundaries on sides

Otherwise words such as "Grandmother" end up as "Grmother"
when the booleans are stripped out in preparation for search
term highlighting
Streaming & find_each for Accounts CSV generation

The accounts download was taking an long time and large
amount of memory to generate.  This helps, but it's still
running 4 sql queries per account row.  We'll have to start
employing counter_cache or something similar to gain more efficiency.

This extracts the existing CSV streaming code from doc_hits into
a "deliver_csv" method.  We should consider further extracting that
into a mixin if additional controllers need it in the future.
Use Tempfile for zipfile creation

When Dir.mktmpdir is unlinked, the inner files are inaccessible to send_file.
This meant that we had to keep it around until after the download was complete,
which littered the /tmp directory with directories filled with zip files.

Since we only need a single file, Tempfile is more appropriate.  We can close
the filehandle and any process that is currently reading from it (like send_file)
can continue to read even after the file is unlinked when the tempfile is
garbage collected.

A future enhancement might be to switch to the Zipline gem.  That would allow
streaming the zip file while files are being added to it, allowing downloading
to begin sooner.
Administer Organizations and their memberships

Add an organization administrative interface with
links to and from the existing membership admin screens.
Offer to link existing account to new organization

Instead of refusing to create a new organization when the email is already in
use, add an additional "relink" checkbox control.  If the checkbox is selected,
add an additional membership for the account and set it as the default.
Add demo flag on Organization management screen
Correct typographical error (duplicate for)
Include status code when redirecting.
enforce TLS on most of the site.
Vend only https asset urls
update ami
Forgot a controller for tls.
Fixing redraw api viewer function. See https://github.com/documentcloud/document-viewer/issues/45
Fix viewer deployment.
Add Chinese, Japanese, and Korean fonts
Update Docsplit to newly released 0.7.6
Update ruby_install version and bump to ubuntu 14.10
sticking with trusty for now