Set coding style and edit code to follow it

Included created both editoconfig and jshintrc files, using the last one in 
Grunt and mostly remove spaces to go to indent 2.
Update CONTRIBUTE.md to warn about tests and coding style.