cljr: split decoder and encoder

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