Add some methods for building page revision objects and web state objects
Rip out the file-writing code, begin work on making this database-backed