I had a look at rebecca.fanstatic, my guess is this is how a 'static
collector' in fanstatic would work.
What would you need to change in rebecca.fanstatic in order to make
this work in your setup?
There are some ideas on making fanstatic more lightweight, for
instance splitting of the publisher into a separate package. Perhaps
this package could be the location of the 'static collector' script.