Modular messaging framework