ISPN-2785 Complete the CLI server codecs implementations

https://issues.jboss.org/browse/ISPN-2785

Applies to both 5.2 and master