Fix whitespace, spaces to tabs

This commit has no functional changes, just changes to whitespace and
tabs. This covers all the files inside the system folder.

1. Remove blank lines
2. For consitency, convert spaces to tabs everywhere. Most of the code
is in tabs, but several locations were either just spaces or a mixture.