Use PSR-4
Added support resolution of  for external files
Add tests
Merge branch 'tyx-fix_norefresolve'