Moved listen() to app instead of httpserver