RethinkDB and SVGJS tweaks

Bug fixes and a few new features. Tests pass. 

I can split these up if necessary.