[WFLY-490] added a bunch of TODOs at questionable places in the code
[WFLY-490] added the first set of test cases

Tests using multiple roles are currently @Ignored, as the feature is broken.