Add links to source

Read environment variables, REPO_BASE_URL and DOCROOT_PATTERN to link function
traces