altered the Xcode config so only public headers from couchbase-lite-ios are pulled in
updated the js logic for determining when replication is done
updated to latest couchbase-lite libraries
create the database manager on the UI thread
remove listeners for private CBL notifications; no longer need to fire js events on main thread as they should arrive on the main thread