Move corehandlers to servers.

- Fix bug where Corehandler shared state between server connections.
- Reset corehandler nickstate on connection.
- Fix race condition test by disconnecting core handler.