Add a isGranted() function to Silex\Application\SecurityTrait + unit tests