Move user authentication from local.inc.php to the security provider
In order to implement roles we need to change the way we authentificate to Chamilo.
Symfony2/Silex have this out of the box (user authentification with roles).
And the implementation using doctrine:
Using the new role approach. The user authentification now depends in the SecurityServiceProvider settings. This service depends as well in the SessionServiceProvider.
Users are login/logout using that service, we don't use anymore the local.inc.php (the cas, openid, will be disabled for now).
This service loads the user information depending in the Entity\User and Entity\Repository\UserRepository see #6257