Introduce .editorconfig file

See http://editorconfig.org/ for details.

package.json was changed to 2-space indentation here, because that's what npm commands will change it to, whenever a command is run. It's quite common for json files, so they've all been set the same, just like a bower.json file would be as well.