Code consistency

Hey Addy,

This is a first-pass on a clean up of the code examples. I'm working on creating a consistent style, as far as...

* `function(){`, `function() {`, `function ( ) {` **->** `function () {`
* `function ( e, thing ) {` **->** `function (e, thing) {`
* `({example: 'here'})` **->** `({ example: 'here' })`
* `/* comments.... */` **->** `// comments.`
* 2 spaces
* various other clean up.

I created an .editorconfig file as well to help contributors.

I'm sure there are some things I've missed, and there are definitely other areas that need attention as well. Let me know if you're interested in going down this road, and I'll keep plucking them out :facepunch: