Singly/OData — pull request #2 by dizzyd (2012-11-07 22:42:15+00:00)
Title: Linting, formatting and licensing

There were a number of lint and formatting problems that popped up in my review of the code, so I went ahead and fixed them. Please accept my apologies for the extent of these changes, but for long-term maintenance it's important to have.

I also applied the appropriate license headers to all the code.

Formatting-wise, we typically use 2-level indent with spaces (no tabs). We use jshint to lint files with the configuration found here: https://gist.github.com/e78386d461dec9e91ae4