Finished plugin system

Tested on Linux and Windows