[CLEANUP] Let's make the code sane.

Please test before merge. I was pretty careful about not deleting anything other than comments, but one misplaced div and it fucks everything up.

TODO (probably not in this PR): Refactor most of the views to partials. Tons of code reuse everywhere.