Upgrade to use Ruby 2.0 & Rails 4.0

Have converted just enough of the sources that the console loads. I've
renamed the original config files to xxx.rails2 for future reference.
Integrate MiniTest

At the point where tests run, but are filled with errors.
Guard and minitest w/spring

Auto-running fast tests FTW.
Add growl to guard-driven tests
Accounts modified to use Rails 4 syntax

Also a bit of lifecycle_mailer.  Added more tests for it as well
Convert DateExtractor test to minitest
Mark test as skipped - Date.parse behavior
DateExtractor recognize both US and international

This normalizes the date to YYYY-MM-DD if the date is all numeric and
the extractor is in American mode.
Documents associations and scopes testing

Only about 1/3 of the way through adding tests.  Have got the
associations and scopes working & tested though.
Use built-in maximum vs raw sql.

ActiveRecord's generated sql is:

SELECT MAX("pages"."end_offset") AS max_id FROM "pages" WHERE
"pages"."document_id" = $1  [["document_id", 368941146]]
Finished with Document model tests

Didn't test the jobs, that will go into integration testing
Annotation model tests
Added annototion & project fixtures
Model scope and finder updates
Entity tests and test_helper work
Rewrite EntityResource to use new query methods

ActiveRecord.all and hash-based options are deprecated, which makes
logic like the original hard to replicate.

It also had a bit of a logic error.  Once the pages method was called,
it'd be cached in the @pages variable and never re-ran even if the query
options were changed.  The excerpts method would also be affected.
Entity model tests
Use sunspot matchers for testing solr queries
Run unit test when fixture is modified.  Cleanup
DC_CONFIG -> DC::CONFIG

Since the Rails app is DC, it seems inappropriate for the
constant to be DC::DC_CONFIG.  This moves it to DC::CONFIG and includes
required modules under lib.