Added extra validation for role policy manipulation.

Extracted some constants.
Lead link stuff complete.