Split app.psgi in two files: frontend and socket.