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.
Merge branch 'staging' into 739-parse_mappings_correctly
refactor definition of default link kind.
Merge pull request #752 from ontohub/739-parse_mappings_correctly

739 parse mappings correctly