Fixed issue #8 by porting changes from Android

- Ported JsonCollator changes from Android (couchbase/couchbase-lite-android#290)
- Added 2 Native methods for testing JsonCollator and RevCollator from Java code.