Don't run SQL rewrites when secondary index is enabled

If the secondary index is enabled on a server the index handles all
queries.  There is no reason to run the SQL rewrites or to leave
predicates in the predicate tree without being wrapped by the
IndexedChangeQuery predicate.

Change-Id: I18defed2a5a6003b9ae6ba227e29864b5c912e7b
23 files changed