Simple refactor moving the api class to the plugin class. This clears the code up a lot and make sense of the interdepencies of the class. Now, plugin is passed into all sub classes and contains a copy of all the all util classes, rest api, settings and hotlink.
Checklist
[ ] My pull request is addressing an open issue (please create one otherwise).
Summary
Simple refactor moving the api class to the plugin class. This clears the code up a lot and make sense of the interdepencies of the class. Now, plugin is passed into all sub classes and contains a copy of all the all util classes, rest api, settings and hotlink.
Checklist