Do you want separate isolated code in each virtual server, or would you want shared code? Supposedly the sample-config.tcl file that comes with AOLserver4 has an example.