Implemented bindings to diagrams-svg

Still this is very alpha-ish. But it works.