Fixes #1120
Improve XDR support
More work on solid XDR support with the new protocol
Remove console