Fixed zooming/panning so that it operates on a <g> instead of the root
<svg> element.  Fixes an error in Chrome and improves speed
significantly in Firefox.