Send the :links option to the file server

Previously, the server was never asked to follow links when 'links =>
follow' was used, so the server always provided the metadata for the
link itself. With this patch, the server correctly follows the link
server-side and the client can apply the catalog correctly.
(#7680) Update tests for changed behaviour after bugfix

A number of tests were broken before the bugfix:
* incorrectly checking the file mode (missing .should)
* operating on a non-existent source symlink

Enabled all of the #10315 tests which now pass, some of which needed
editing due to the expected behaviour now being different for
links => follow.
Update Puppet::FileServing::Metadata tests

Provide a stub for resource[:links] => :manage
Expect :find to be called with :links => :manage
(#7680) Add acceptance test for file links => follow
(#7680) Fixup Puppet::Resource::Catalog::StaticCompiler tests
Merge remote-tracking branch 'pr/1532' into 2.7.x
Merge branch '2.7.x' into 3.1.x

Conflicts:
	lib/puppet/type/file/source.rb
	spec/unit/indirector/catalog/static_compiler_spec.rb
	spec/unit/type/file/source_spec.rb