Re-arrange user libraries. Improve loading.

Now auto-load the core libraries with requirejs.