Migrate to AutoPlugin, close #24