massive refactor of import/export/module loading. export resolution implemented.