Major overhaul -- switch to require.js modularization.
add stubby docs