WIP Reorganize loading of sonatype-lib.js

Use requirejs for most of what was in lib and move to a different namespace.

WIP, pending review.