Removing commented out and unused code
Add support for BETWEEN {from, to} predicates
Extract duplicated stuff for predicate exceptions
Add tests for compound queries
Merge pull request #771 from realm/tg-between-literal

Add support for literal ranges to BETWEEN predicates
Remove comment of unused method
Revert "Remove comment of unused method"

This reverts commit 799c6760f2bda316d300be49245be98afcdbd918.
Remove unused comment
Merge pull request #747 from realm/os-clean-create-json

Removing commented out and unused code
Reject invalid subclassing of RLMObjects at schema generation time

Rather than producing weird errors and bizarre behavior when they're actually
used.

Remove the unit test which was testing them since there's no way to have an
invalid subclass for just a single test.