Split leo_mem() into two component functions.

leo_mem_check() checks the header contents and returns a value as
appropriate.
leo_mem_init() initializes the header to the current version.

These changes are advantages because it allows programs to only check if
a file is a libleornian memory file, and because it simplified the
return values (RETURN_WIDTH was removed).