Fix async loading of PaperScript to use correct scope.
Fix to make sure that attribute methods exists before calling. Check of hidpi attribute in canvas was crashing in Node.js, as the getAttribute method is undefined in node-canvas.
Fix indent.
Merge github.com:msand/paper.js into msand-master