A Unified Framework for Context-Aware IoT Management and State-of-the-Art IoT Traffic Anomaly Detection