MAESTRO-2974 Added role and permission creation code.

TODO: handle duplicate role creation.