Add stat tracking service and http endpoint for querying it
Also listen on localhost for stats call