Use Json for configuration files

This patch converts the current configuration files to json and uses
the python json library to parse the them. Json is a standard format
and as such already has many encoders and decoders available. This
option also leaves room for a schema validation using something like
jsonschema.