Rename and tidy various.

Prefer 'state' to 'u', make 'previous' and 'saved' more consistent,
remove a functions that we don't use yet, remove delta nodes.

Signed-off-by: Matthew Emmett <memmett@gmail.com>