Reinforcement learning for content caching and crowdsourcing leveraging context awareness