Spring cleaning

Basically applies all of the proper coding conventions:
fixes spaces and tabs
fixes trailing whitespace
fixes newlines at ends of files

This will help keep extra diffs to a minimum in the future