Remove tabs, consistent indentation.

In files where tabs have been used these have been changed to spaces.
Where indentation has been two spaces or inconsistent, these have been changed to use four spaces.
All files now follow the same indentation.