Malte,
I think a possible solution is to use Lee Denison's template head code.
Dave B. encouraged me to have a look at it.
I did and ajaxhelper now uses template::head to dynamically load style sheets and javascript sources that a particular helper needs.
It's documented here ...
http://www.openacs.org/xowiki/templatehead
Dave and I was just discussing about committing the template::head code to CVS HEAD earlier this week.
Ham