add per-agent invoice templates, add per-package suspend invoice events, fix automati...