Better error handling and reporting.

The client will now see the actual error rather than "module not found." Also
fixed a bug where modules with no downloads would throw.