Refactoring Java and Prolog code of "Find primary definition". The definition search is now done in one predicate which checks for
- Logtalk files,
- Logtalk messages,
- file specifications
- calls in transparent predicates
- any other terms
- possible alternatives suggested by dwim.