You can take whatever code you need from the plugin. Just yesterday i was also playing around with a territory view on the new strategus version, but first approach didn't work out as good as i wanted (i used convex hulls, but my math is not good enough for this kind of stuff). Looking forward how your SVG will work out.