first stab at porting shining new script/dancer2 from D1

I thought I'd prepare a PR with the new D1 script (from D1/devel which Yanick updated yesterday). I changed only trivial stuff such as links. It appears to mostly work out of the box (as far as I can see).