Remove unused modules.

The new version of JSHint has more aggressive options for finding unused code.  There's far too many false positives to turn it on by default, but I turned it on locally and quickly found a lot of modules throughout the codebase that are not used.