Add Payout + Refactoring

- Add Payout Ressource + partial tests
- Some minor refactorings