Chunked annotating to make it faster.

This could use more speedups; it takes 10-15 hours or so for
adding a small file.
Merge pull request #123 from roryk/master

Slightly faster annotations