Add escaping and refactor parse-string-literal somewhat.
Add chain-parser tests.

Still doesn't make cloverage totally happy...