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

Also this represents a real endpoint which does not return any key "docId".