refactor query parsing
refactor query parsing

It's long overdue that the parsing of individual query components was moved
out of classes and into top-level functions, where it belongs.

google-code-export/beets,google-code-export/beets,google-code-export/beets