Initial lightnight demo code.

Signed-off-by: Paul Brook <paul@nowt.org>
Fix double buffering issues

Signed-off-by: Paul Brook <paul@nowt.org>