Dynamic assertion for IsGranted plugin

Added the assert parameter for isGranted controller plugin + tests.

Note : I don't think it's necessary in the view helper. I can't imagine to use a closure in a view.