Replace tabs indentation with spaces indentation

As said in the contributing guidelines: "Never ever use tabs"
So I replaced tabs with spaces (mainly for indentation).

Some files are obviously external libraries (jquery for example), I didn't touch them.

This issue is a duplicate of #1973, which I closed due to bad branch manipulation.