Bind app event handlers before app.listen