First steps to structure and test the code

Swapped arguments to environment variables because rake arguments are ugly.
Add tests for extracted file parsing code
Extract a SearchClient from CheckSearch, add tests
Extract Calculator and scoring code
Add missing newlines
Correct typo
Switch ``puts`` to logging
Add semantic logging levels
More graceful output on invalid CSV line
Log in more cases where a Check was ignored
Colourise logging, extract config
Fix bad switching between API and Rummager formats

Instead detect the format from the response.
Remove executable flag from check_search.rb.
Add in test for parsing Rummager responses.

Also bring test URLs and the default SearchClient URL in line with what will
get constructed from the CheckSearch class.

And add a missing `test_helper` include.
Checks only pass if the result ranked well enough
Fix alignment
Tidy up requires
Merge pull request #3 from alphagov/libraryise

Libraryise