Move plugin initialization to class constructor function

Eliminates one function and also (possibly) avoids naming conflicts if a second extension with the same name is installed. (Unlikely but possible.)