Break highlighting functions into separate file, and rework.

Can now match phrases... It's not particularly efficient,
but it works.
Move configuration and utility functions in.
Call out to the code which is now in islandora_ocr.
Fix for the Solr fragment/HOCR mismatch.

Solr fragments seem to leave out punctuation at the start or end of
fragments; therefore, we now grab non-whitespace on directly on
either side of the fragment, so we should be able to match full phrases
which start after something like a parenthesis, to the end punctuation.
Copy paste error.
Prevent the fragsize from becoming too small.

Solr enforces a minimum size of 18 characters.
Merge pull request #2 from nigelgbanks/7.x-code-review

Copy paste error.
Merge pull request #3 from adam-vessey/7.x

7.x
Moved the solr logic to the islandora_ocr module.
Merge pull request #4 from nigelgbanks/7.x-code-review

Moved the solr logic to the islandora_ocr module.
Merge pull request #10 from adam-vessey/7.x-ocr-in-ocr

Call the OCR function now located in islandora_ocr.
Fix a variable name.
Merge pull request #12 from adam-vessey/7.x

Fix a variable name.
Merge branch '7.x' of git://github.com/Islandora/islandora_paged_content into 7.x
sed fix