Functional - but with a lot more work to do on a reader thread etc

Signed-off-by: Lasse Bigum <lasse@bigum.org>