Replace double quotes by single quotes

Also fix some other jshint issues like mixed indentation, trailing
whitespace, etc.
Merge pull request #161 from siebrand/quotes

Replace double quotes by single quotes