Contextual Decision Making And Action Enforcing Applications In Wireless Networks And Iot Using Sdn As A Platform