Serialize config values to json

In order to support complex settings such as graphite, histogram, etc.
Merge branch 'complex-config-values'