Wfly 2285 upgrading narayana to 5.0.0.m6

Includes commit from PR https://github.com/wildfly/wildfly/pull/5135 because commits ed0cd96 and d7aa5c4 depend on it. Checked with Brian that this is the correct approach.

The remaining commits are all mutually dependant which means that we cannot raise separate pull requests for them.