Support PHP files moved from modules lib dir to module root.
Support PHP files moved from modules lib dir to module root.
refers to #945, added comments about legacy and compat var

Small description added to the comments on legacy_prefilters and compat_layer variables.