Convert to/from CommonJS and UID format at plugin boundaries.

Ensures that module names are converted back to CommonJS format before being passed into the plugin and are converted back when coming out of plugin (toUrl function).
Also: simplify createInstantiate function.
Start adding tests.
Add docs and bump version.