When viewing file's history, use the default branch if needed
If the user does not specify a branch, we will show the history
in the default branch so define the branchname variable so it
can be used in the templates
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>