Remove unnecessary whitespace in templates

There was a lot of whitespace just floating around in a newly-generated application.  This drives me crazy, so I figured I could be helpful with this.  This removes useless whitespace at the end of various lines.  It oughtn't be there.