Unifying lattice models, links and quantum geometric Langlands via branes in string theory