Accept non source urls for github

If the url for a github repository is pointing to something other than source code (i.e. tree or blob) redirect to the project root.