Allow registering ES6 modules from plugins.
Extract poll plugin controller into an ES6 module.