Refactor data modeling for routes/pages.

Will require databases to be cleared out in updates.