[5.0] Global syntax fix

* Ensure all files finish with an empty line feed
* Convert 4-spaces to tabs
* Remove trailing spaces
* Remove duplicate new lines