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