Designing the 5G Network Infrastructure: a Flexible and Reconfigurable Architecture Based on Context and Content Information