The refineries that will thrive are those that see themselves as energy hubs, not just oil processors.