JSDoc additions, updated to utilize requireJS fully.

This update has the main parts of shards all as modules.