SVG: scoped is passed as metadata

Instead of using a svg class to pass scope information
use notebook metadata.

Suggested by Matthias Bussonnier