[CB-4793] Lazily require modules in plugin.js

Cuts ~350ms off of many commands on my MBP.