Port most of the frontend to new data format.