Implemented new version of www publish, including resource tracking support (untested)