Added core, contrib, and custom modules types to Drupal.modules. Changed module_implements(), module_invoke_all() and module_load().