[MODEL] Added dynamic getter/setter (block/proc) for MyModel.index_name

Fixes #155.

The following changes could also be applied to elasticsearch-persistence (I guess) if you want me to do it.

The tests are not very easy to read... I am taking recommendations. I have also signed the CLA.
Do you want to add an integration test, François? No worries if not, I can do it during merging.