Backend: Fix the way dochash are computed:
- Img doc: Fix the exponential size of their hash ...
- Work with integers instead of strings

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Merge branch 'unstable' into wip-remake-scan-process