Eventmachine based server

Fixes #1