Unified cosmic history in modified gravity: From F(R) theory to Lorentz non-invariant models