Multiple Fixes to Reports with Code Reorganization

Handling for no parameters and certain combinations of parameters is
included. Removed some inefficiencies in processing of reports.
Reorganized the querying and code  behind generating the question
lists. Still a work in progress.