Templateinclusions userprofile graded contributionform

please see the commit messages for what is done in this PR.

since this got quite large and the individual commits are mostly unrelated, it probably makes sense to review this per commit. if wanted i can break this PR up in smaller PRs, but i wouldn't change the commits, so...
could these also be links to the courses?