LinkSmart Data Processing Agent (DPA) & Learning Agent (LA). IoT fog services for data-processing and machine learning