Return array instead of Cursor in DocumentRepository findAll() and findBy()

This is a BC break, but fixes DocumentRepository's contract with the ObjectRepository interface. The BC break should be less of an issue for findBy(), since there are already sort/limit/skip arguments.
Changelog entry for DocumentRepository findAll/findBy return values
Merge pull request #742