Add .eslintrc and some corrections asked by eslint
Add server.js and gulp tasks
Remove globals, and refactor painter
Merge remote-tracking branch 'origin/master'

Conflicts:
	js/.eslintrc
	js/main.js
	js/painter.js