Move nested record fetching logic out into its own class
Add a hack to the spec_helper's get_tempfile_path to avoid having tempfiles GC'd and unlinked.