Keep selected branch across repository/commit pages

Pull request for issue #151