Move some of misc1.c to indent.c.

My little contribution to #209.

This is a replacement for my previous PR #248, which:
1. used Gaelan/master instead of a topic branch
2. fixed a bunch of trailing whitespace
3. didn't compile