Re-added the WSGI utility module.
Only fetch page fields that we're going to use from the DB.
SQL optimizations.

* Reduced the size of the `url` column to make it unique, along with the `path`
  column.
* Removed an unecessary lazy loading of some DB object property.