remove unnecessary logger portions from linkscode.
extract linktype determination into method.
add KINDS_Mapping for concrete kind checking

Also adjust order of KINDS array, since
inclusion matches would never reach 'cofree'
as 'free' would be matched first.
adjust link/mapping kind determination mechanic

use three-tries mechanic before defaulting to
'import'-kind. First we search for exact matches,
then for exact-matches which are only included
in the target string, and last for triggerword
(case-insensitive) inclusion.
fix expected direction of import links

If ontology O1 imports ontology O2, the import-link is actually
defined from O2 to O1 (O2 being the source and O1 being the target).
fix onto spec: switch source and target in setup
Merge pull request #762 from ontohub/755-brittle_spec

755 brittle spec
Merge branch 'staging' into fix_import_link_direction

Conflicts:
	spec/models/ontology_spec.rb
Merge branch 'staging' into 739-parse_mappings_correctly
Merge branch 'fix_import_link_direction' into develop
Merge branch '739-parse_mappings_correctly' into develop