Documentation: Updated v4.0 source code links to point to master.
Merge pull request #5122 from EricDunsworth/v4.0-broken-link-fixes

Documentation: Updated v4.0 source code links to point to master.