Updated _resolveImport to provide parsed ns to _require, dumped old _resolveImport.
Extracted global require from beget's require until we can tdd it.