Added custom logging and serialization for client from configuration; now applies to all plugins also