Decode roles is set

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>
Add a hasRole() test to API

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>
Add hasRole() Twig function

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>