Insert reST labels for cross-referencing

Insert unique reST labels based on filenames to support cross-referencing to
arbitrary locations in any document.

Signed-off-by: Olivier Carrère <carrereo@gmail.com>
Acked-by: Angela Cristina <acristina@redaction-technique.org>