Implement support for setup hooks

With this PR it's now possible to define an hierarchy of setup scripts, as provided by some test frameworks

It should close issue #5
Duplicate import.