Massive rewrite of routing and view structure