adds sindex support in js/py drivers (#553)

Be wary though. The feature thus supported may no actually work.
Merge branch 'next' into driver_secondary_index_support