Use xml configuration, switch controller to service, fix lastMessageRead in sendAction, add presence_provider option