Cleanup time!

Moving towards a pure nodejs implementation of this library. It will be stream based and will take one or more modules as input and output one or more modules, to be concatenated and minified by another library. The task of this project, from here on out, is only to find dependencies recursively.

Got rid of platform specific stuff, libraries (which will be loaded with npm instead) and optimization specific code, which will not be part of this project anymore
Moving all the files that probably should be saved and reused into the source folder, making them use the node style require
(this project is a mess!)
transform.js (and especially the toTransport method) looks like it takes a single file and adds module names to every define call. This should probably be one of the two starting points for this project!
build.js has a traceDependencies method, which is probably the other starting point of the project. There is a lot of config stuff that needs to be ripped out, the require object/method is patched to work with the backend, and (fun fun) this project seems like it is designed to optimize itself as well as other projects.

The build.js file does a lot of directory and file manipulation, which needs to be ripped out.