Add the possibility to see the tree of the project at a certain commit
Fix two bugs in view_file

- Try retrieving the commit using the identifier provided
- Set the correct branchname according to commit retrieved
Remove debugging code