Add autoinit support and check for already inited plugin

1.0 -> 1.1