The GAMBIT Universal Model Machine: from Lagrangians to likelihoods