Refactor commonjs-require to act more like Node.js module implementation.
Remove obsolete files.
Update README.