Port key payroll operations from api/payroll.ts to plpgsql RPCs with
round_money helper, internal recalc/ensure logic, and core.rpc_* envelope.
Add batch worker import and post-S3 document metadata store RPCs with
Spanish validation messages and panels_core_app grants.
Co-authored-by: alberto.martinez <alberto.martinez@mrdev.mx>