add tests for repo type detection
fix lib function for git repo detection
remove js routes from assets (unused)
make repository detect repository type automatically
Merge pull request #432 from ontohub/augmenting419_repo_type_detection

Repository type detection, fixes #419.