First working refactor

Fully re-architected site, ready for re-design.