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

@peterbe r?

Note that this feature is turned off by default through configuration, using the ``use_mapping_file`` option in ``ElasticsearchCrashStorage``. I want to turn it on on stage first and make sure the new mapping way doesn't break indexing. After a week or two of successful indexing, we will turn it on on production. 
Perhaps I'm reading this incorrectly, but I see two tests for mappings that fail, but no test for a successful mapping - oversight?