code to cache "trend" data for N seconds
some cleanup
using ASP.NET Web API 2.1 to expose polling information via JSON/HTTP