Normalize line endings and add takeScreenshot

See info here on the line endings: http://www.lhotka.net/weblog/AdventuresInGitland.aspx

I used Github for Windows to create a .gitattributes file and it automatically updated the files.

Second comment is the addition of the takeScreenshot function.