Generalized Lie Theory in Mathematics, Physics and Beyond