refactoring of server/Editor.js to inherit server/Relay.js