add specs for permissions check for git/ssh.
pass specs and add private_* support to git/ssh.
extract permissions-check (git/ssh) into methods

Thise includes the following:
  - Everyone-Case
  - Permission-based handling
  - Role-based handling.
use boolean in git/ssh instead of if-elsif-else.
add version numbers to version index view
display newest version first
use bootstrap modal in file edit on discard
Merge pull request #900 from ontohub/898-handle_private_repositories_for_ssh

898 handle private repositories for ssh
Merge pull request #913 from ontohub/500-newest_version_first

display newest version first
add download links to ontology version index
move modal functionality into discard()
use ontology.repository; repository does not exist

repository does not exist anymore (is not set in the controller),
so we'll access the repository through the ontology.
Merge pull request #919 from ontohub/hotfix_oops_repository_path

use ontology.repository; repository does not exist
Merge pull request #912 from ontohub/886-incremental_version_numbers

add version numbers to version index view
Merge pull request #914 from ontohub/828-use_bootstrap_modal_in_file_edit

use bootstrap modal in file edit on discard
sort entity-tabs alphabetically

Also default to class-tab if possible.
show class-tree too if there is no query-argument

If the class-tree is applicable display it, even if
there is no argument for kind inside of the query-string.
refactor tarjan tree according to style-guide

Also objectify the class.
use SQL to fetch valid sentences for Tarjan Tree.
adjust tarjan tree uses across project

Use .for instead of .new.