validate_input(): Check for existance of entities.
validate_input(): Check for existance of entities.

Better check for request structure, which must now contain all needed
entities. The compiler will deny any malformed requests.

Also takes into account the Leonardo-specific flags and eliminates PHP
notices for undefined properties.

codebendercc/compiler,codebendercc/compiler,codebendercc/compiler,codebendercc/compiler