Removed old serialisation code
Added some helper methods
Fixed graphics tests
Added (very basic) ring buffer

Signed-off-by: Martin Evans <martindevans@gmail.com>