[in progress] role -> user privilege map auto update

Need to find a way to update related users...
Changed privilege map to use mapping:sig.type in object instead of
{type:.., mapping:...} in array.