First WIP of swf/shape.js rewrite