Change API for auth plugins
Remove EventEmitter lib