Huge rewrite

What the title says. The admin section is next.