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.
Remove .ds_store garbage
Merge pull request #407 from Milow/master

Cleanup whitespace in /system/*