Limits number of commits shown on project page to 3.
Moves logic to limit number of posts, projects and commits on dashboard to template.