Pita/etherpad-lite — pull request #343 by cweider (2012-01-20 07:41:10+00:00)
Title: Modulize

Here is a batch of changes isolating each file in its own module using the CommonJS convention. This sets the stage for significant amounts of code sharing amongst the client and server, which started as 1cec6227b1ca44fce036df59e1f1bc602dbc33c7, but is now [branch](https://github.com/cweider/etherpad-lite/compare/modulize...modulize-share).

This particular patch aims to be as unobtrusive as possible. The hope is that, with the explicit dependencies and interfaces enforced for each file, changes to the application will be both easier, less dangerous, and more testable than they are now.