[net] Add role for user

Add role and its rpc getter, setter functions.

Any review is welome!
I have no idea about that, will ``role?role:""`` be enough?