add debugging option to OPM reports

having a heck of a time with http://manage.dimagi.com/default.asp?146522
Merge pull request #4830 from dimagi/opm-debug

add debugging option to OPM reports
Merge branch 'master' into ils-reports