an evented network server in scala