Remove tons and tons of dead code...

and split views.py up a bit more.