CC-4417: Opus codec support
better logging for return values
use sendJson, instead of manually disabling layouts + encoding data