[net] Add role for user

Add role and its rpc getter, setter functions.

Any review is welome!
Do you mean the case where the returning role is empty? I think the client will get a NULL string in this code.