Trace index selection
patch by Lyuben Todorov and jbellis for CASSANDRA-6001
merge from 1.2
merge from 2.0