For too long, shopping centres have been inward-facing, generic and disconnected from their surroundings. That era is ending.