Adaptive Active Inference Agents for Heterogeneous and Lifelong Federated Learning