Ignore reports output
Substantial improvements

Turn functions into methods of a class, add retrieval and storage of
individual reports, convert reports from XML into JSON.