Moved read_memory_files_to_record to the spi package.

Also moved all memory definition constants and datatypes to the package.