starts a restify server if app is undefined