internal/v4: implement API endpoint for bundle diagram.svg

This requires some QA behind a real web server to
verify that the generated SVGs actually work!