Fixes bug 1013322 - Generate the elasticsearch mapping from the master list of fields. r=phrawzty