initial refactor
Merge branch 'arch-refactor' of github.com:rhanak/merwar into arch-refactor

Conflicts:
	pages.py