Rewrite the frontend to use the Play framework