New: added functions to give roles/permissions

Todo: giving permissions to roles and not only users.