Wfly 1957 upgrading narayana to 5.0.0.m5

Includes commit from PR https://github.com/wildfly/wildfly/pull/5135 because commit 46852ed depends 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.