xan: Convert to bytestream2

Signed-off-by: Diego Biurrun <diego@biurrun.de>