Pita/etherpad-lite — pull request #1096 by marcelklehr (2012-10-28 17:42:22+00:00)
Title: Fix npm

We have to `npm.load` first before using any property of npm (see the result at #1092).

The other things is, that npm has been updated and our deep require paths into the npm directory no longer work. Parts of the npm utils have been outsourced into separate packages, parts have been left unreplaced. The new packages' (if available) APIs, sometimes differ from the original modules in npm uitls.

This patch makes sure npm is loaded before doing anything and also adjusts all modules in `pluginfw/` to use the new facilities and their APIs (if available) and to mimic the functionality of those who haven't been replaced.