Jacobi--Lie systems: Fundamentals and low-dimensional classification