Require.js (WIP)

Opened so people can spy on me.  Please ignore random code snippets sitting in files they don't belong in (especially in notebook.js), I'll move them when I get to the correct file.
Seems like this should only be called once, when the require function is run, not when a Notebook object is created. Can we move it outside the constructor?