comments and @rule { {} {} {} } nesting fixes

fixes #62 by removing comments before parsing the CSS selector, trimming the found selector, and making sure that for keyframes/media queries we note that we're in a nested block context, so that `} }` at the end doesn't throw an `UNFINISHED_CSS_SELECTOR` error.

Three unit tests have been added to cover the parsing problems originally signalled.