Add server.js and gulp tasks
Remove globals, and refactor painter
Merge branch 'master' of https://github.com/Xartok/JSPaint