Access origin

This will also refactor the plugin related tasks to its own class.
Also, it fixes a bug when parsing the minor version header.
seems we sometimes call it ``$plugin``, and sometimes ``$plugin_info`` -- we should probably rename all to ``$plugin``