friday's leftovers
more leftovers
moves massive query into it's own class for readability
test data structures, hold for later
bumps version to allow a change in the table def: let itemid be empty...probably some unintended implications here...
pushes queries through in a loop and aggregates their resultsets;

this is the machinery that will generate this report, but at the moment, there is much tweaking to be done.

Also, sets status values in mdl_config as follows:

| 602 | apreport_lmsCoursework              | complete_success                      |
| 604 | apreport_lmsCoursework_assign       | persist new data_success              |
| 605 | apreport_lmsCoursework_assign2      | complete_exception(s)_empty resultset |
| 601 | apreport_lmsCoursework_assignment   | begun_success                         |
| 606 | apreport_lmsCoursework_database     | complete_exception(s)_empty resultset |
| 607 | apreport_lmsCoursework_forum        | complete_exception(s)_empty resultset |
| 608 | apreport_lmsCoursework_forumng      | complete_exception(s)_empty resultset |
| 609 | apreport_lmsCoursework_glossary     | complete_exception(s)_empty resultset |
| 610 | apreport_lmsCoursework_hotpot       | complete_exception(s)_empty resultset |
| 611 | apreport_lmsCoursework_kalvidassign | complete_exception(s)_empty resultset |
| 612 | apreport_lmsCoursework_lesson       | complete_exception(s)_empty resultset |
| 600 | apreport_lmsCoursework_quiz         | persist new data_success

-------------------