Move gearlib detection to registry.js
Auto-load gear-lib if present.
Oops. Remove debug code.
improved module loading logic