Fixed "Current Path" display in Repo Browser

Also moved some of the logic which should be in the controller out of the view for displaying the Current Path.

The expand_path() function from SVN has been translated over to Git as well successfully.
Redundant `return` detected.