Support custom sharding (not just logstash)

0.3.1 allows index sharding by date, but the method is named for logstash which seems incorrect and restrictive. This PR generalizes the code but still allows quick logstash configuration in the same way as before, while leaving the door open for other pre-configurations as well (flume?).