Single quote support.

Reviewed by @tolmasky.
Add support for single-quotes and significant cleanup.

Reviewed by @tolmasky.
Merge pull request #12 from tolmasky/master

single quote support, cleanup