STI support reindexing and searching

This commit removes previous change made in #163 fixing #190 and supersedes #194
It also adds reindexing support for STI tables and supersedes #197
Please use the usual template substitution here:

```ruby
clause = clause + "type = :model_name"
```