Convert spaces to tabs, fix indention, remove trailing whitespace, ensure newline at EOF.

I only touched the PHP files in the root folder.