Add statistics for doc-locale, update git ignore, add docId in documents request

This is not related to the other changes, so split it into a separate commit.