yesod-test: Improve CSS selector parser.

* Tighten up what the parser will accept (especially wrt identifiers).
* Write the parser in a more idiomatic (for *parsec) style.
Merge pull request #824 from erikd/master

yesod-test: Improve CSS selector parser.