Micro grids for scalable media computing and intelligence on distributed scenarios