Eventmachine based server

Closes #1