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