Fixing tabs and trainling white spaces

I've fixed numerous trailing white spaces and several occurances of tabs in the code. I believe that good coding style should forbid this kind of things. Hope this won't cause merging issues for other things in flight.