Remove module definition

This removes inline module definitions

```js
module 'm' {
  ...
}
```

Only external modules are supported.

Now that inline modules are gone a lot of simplifications were possible.