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.
In the widgets themselves.  It makes more sense to do it here so we don't have to import widgetmanager in ALL of the widget classes.