create metrics-tools with all of the index.json processing code as first content

cf. legacy/trac#20039 (moved) and legacy/trac#19934 (moved)

Any better ideas to resolve this issue?