Standardize plannings actions parameters.
Add missing utf-8 encoding header.
Move plannings stats calculation to a service.