core: z_stats now acts as a webmachine logger