rewrite for 0.12.x version of builder.js

Hi,

This makes it work on the 0.12.x version of component/builder.js, as the new API breaks backward compatibility.

Check the test files to see the changes in usage.

Olivier.