some mgmt protocol fixes

https://issues.jboss.org/browse/WFLY-3362
https://issues.jboss.org/browse/WFLY-3360
https://issues.jboss.org/browse/WFLY-3359