Added getter for roles. Changed the private async class to be able to ge...

...t cookies or get roles. It takes a boolean. True gets a cookie