Use chmod() instead of umask()
Make adminer.key group-readable
Adapt to mapping structure

Mappings return a different structure actually:
http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/mapping-intro.html#_viewing_the_mapping
Merge pull request #1 from vrana/master

Update from original