ugly api changes to make require() work evsukov89/couchbase-lite-ios#4