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.
Those are utility functions. We expose them of possible use cases and delegate functionality to them in `getPluginInfo`. Useful but not important.