[net] Add role for user

Add role and its rpc getter, setter functions.

Any review is welome!
What if role == NULL?