Merge pull request #34 from adamhooper/pull33

More CORS support
CORS for our document endpoint.
Why not French as well?
When Calais fails, it sometimes does so before it requires the curb library.  This causes the code to throw a "uninitialized constant DC::Import::CalaisFetcher::Curl" exception when it attempts to rescue from Curl::Err::CurlError in the retry_calais_errors method.  Requring curb by ourselves ensures that the Curl namespace is loaded, fixing the uninitialized constant exception
Silence annoying: Gem::SourceIndex#search is deprecated with no replacement messages.  Will attempt to figure out root cause later, since rubygems issues #145 (https://github.com/rubygems/rubygems/issues/145) says it should have been fixed in 2.3.12.
Track the file hash of documents

Allowing more efficient processing of new documents. This commit
stores a sha1 hexdigest of each file processed by cloud_crowd's
document_import action.  The file_hash is then checked by
the process_images step for duplicates.  If a duplicate is found
the per-page images are copied from it, skipping the
expensive Docsplit.extract_images step.

In order to prevent copying the images from a modified document, the
file_hash is updated by the following crowd_cloud actions:
remove_pages, reorder_pages, redact_pages.  The insert_pages action
was unmodified due to reorder_pages being called after it.

Since the file_hash is closely related to the file_size, they are now both
updated by the Document#update_file_metadata method.

MD5, CRC, and SHA hashing algorithms where evaluated and SHA1 was chosen
due to it being the quickest to compute for large (200MB+) files.
If desired, a different method may be selected by modifying
the Document#update_file_metadata method.
commit 70555a25ff10131e10c3496b95d6f12be8cbc5a7 1 parent 975c54dd22
Remove logging line.
Unify dialog style for entities.
Language should not be overwritten on docs if it's already set.
Merge branch 'language_aware' for basic French and Spanish language support in OCRing and Calais entity extraction.
broaden the utility of `rake ssh` to include generic domains (like adhoc workers)
New multilanguage supporting AMI.
Turns out entity extraction for french and spanish works alright.
Fixing goofy error in error catching code.
Allow users to link to document viewer pages without sidebar.
Sidebar state should not be contingent on being logged in.
Push out our new worker AMI.
rebuilt viewer
enabling SSL loads for all embeds
correct mime-type for loader.js