adding appstats for usage/cost tracking (and 02*.html template modification)