Added createRole(). Fixed bad callbacks in roles and permissions methods.