Basic hack working
Mostly works.

The validation uses relative URLs but the code gen doesn't.
The following works.

// Options: --debug

module 'm' {
  export var x = 1;
}

import {x} from "m";
module M from 'm';
M.x + x