Move main plugin class into its own file.

Keeps all defined classes in their own files, as per good practices.