adds 'path' property to the module object for CommonJS style definitions

'path' holds everything up to the last / in the uri.  The purpose of it is
to allow modules that require images or other resources to specify their paths
without hardcoding the location of the module.