Saving as I factor out the $http code.
Checking in refactored version - still lacking setInterval support.
Updates to modularize the url generation.
Added proper dynamic class names for summary data.