Separate monitor prototype into smaller modules with tighter responsibilities: API, aggregation, and simple console reporting.  Remove setInterval in favor of a more event-based approach.