cache has_role answer

add caching to has_role? so the code wont unnecessarily touch the database.

in any has_role? there is a request to the database. this is a waste because we already ask for this data.
I've added sort of caching for that base on instance variable.

hope you'll like it !