added emitter class; express.listen only after background tasks complete; closes #1227