Restructured sales\dealer report code

+ Put page oriented logic into controller
+ Converted view to PHP within HTML, rather than HTML in PHP.
+ Created report model, which inherits from application level model.
+ Greatly simplified query logic from general string formatting to
prefabricated queries which require a small number of input variables to
operate.