[WIP] Extract elasticsearch mappings to json.

config["mappings"]["default"] now contains a merged version of the
config/schema/core.json (which sets up 'generic' properties) combined
with each individual doctypes properties. This is generated from every
file present in the config/schema/default/doctypes directory.