call #to_sym if event is not a Symbol
cosmetic change
fix server authentication to raise error immediately when it fails.
fix spec_server to use new plugin hooks