Allow registering ES6 modules from plugins.
Extract poll plugin controller into an ES6 module.
Merge pull request #2339 from vikhyat/poll-plugin

Partially convert poll plugin to use ES6 modules