Move validation into ev/record-deploy.
Split validation into its own function.

Record-deploy needs the file to be written already so it can index and checksum.