Add JSON schema for "unmanaged-files" scope

This is an alternative to #139. It sacrifices speed for a more thorough validation.
The error messages also would need to be cleaned up.