Implement data export to CSV.
Move routes building to just before server boot.