Some cleanings and refactorings

Refactored KPIConfiguration's ctor. Deleted unused Serialize method in
KPIClient.