Added support for custom routing and the ability to define index settings in the config (number of shards etc)