Add create index with mappings

See #331, #508

Since via curl an index is created to be able
to set refreh interavll to -1, the java program
doesn't create an index anymore and with that no
mapping is set.
We need this settings and so we give them via curl.