Removed forward declaration of module properties, better module encapsulation, merged preRun and addRuntimeDependency.