Issue #2045189 by jlindsey15: Move file entity dependent code in includes/file.inc and system.module to file.module.