Remove unused modules.
Capture loader hooks to provide additional information for some errors.

Fixes #20 and fixes #17.
The code in auto.js and debug.js is a real mess, atm.  Serious refactoring needed!
Override loader.normalize to check for missing packages.
Override loader.instantiate to check for ReferenceErrors that appear to be moduleType mismatches.