Upgrade to node 0.10.

Remove dead code.
Wrap local dependencies with requirejs define()s