refactor reports/report

To make it easier to use stacky as a library vs cmdline only.