Add support for secondary indices

Adds support for secondary indices (introduced in RethinkDB 1.5). Indices are created for properties with `index` set to `true` and foreign keys. They are used in `.all()` for the first property with Index doing an equality (using `getAll`) comparison or a `between` filter.