Convert tabs to spaces, remove trailing spaces.

I've only done the controllers and models so far. I'll do the views, too,
when I go around styling the periphery pages.