- fix for Tcl 8.5: OpenACS did overwrite the Tcl built-in command "::apply" and broke therefore all scripts/libraries using it. Changed the name of the OpenACS function to "ad_apply" and altered the few occurances. The fix works as well with Tcl 8.4. The proper fix for 8.5 would be to use instead of the function the expand operator {*}
In NaviServer usage of ns_startcontent is deprecated instead we use ns_headers to specify the content-type which is added to the connection outputheaders ( which are sent to the client when the first ns_write is called, so no need to use ns_write to write headers to the client before serving the content)