tests pass again, haven't since wsgi refactor
Parse pages in pages.py, extra abstractions
Imageapp functionality replicated