[3.8] Refactor client

This PR moves all client logic into controllers and client view in twig