OPAL-2122

 Completed the implementation of UI components of resource permission + some cleanup and QA.