Completed automated module creation for external services.

Note: changed previous behaviour: automated module creation is now opt-in. Reasoning: the majority of vendor libraries dont actually use module.exports!
externalModule.js cleaned up so its not dependent on global variables for counting the number of times a vendor library has been loaded.

Removed trial services that manually took references off `window` and stuck them in providers.
Patched up the application where `window` references now correctly do not work.