Base Plugin Class and Main Thread naming

No other stuff, just a base plugin class. :)
Also I changed the main thread naming.