Initial QSV param parsingf refactor, including some test code.