Some fixes and implement using a netty Channel for console I/O