How to build a plugin system on the web and also sleep well at night