CBLIS: Fixed refresh context orders and store change notification
CBLIS: Fixed refresh context orders and store change notification

- Make sure that contexts get refreshed in order, root context first.

- Make sure that store change notification is done after refreshing all contexts and is posted by the root context.

- Several code format fixes.

amco/couchbase-lite-ios,brendand/couchbase-lite-ios,amco/couchbase-lite-ios,amco/couchbase-lite-ios,amco/couchbase-lite-ios,brendand/couchbase-lite-ios,brendand/couchbase-lite-ios,brendand/couchbase-lite-ios,brendand/couchbase-lite-ios,amco/couchbase-lite-ios,couchbase/couchbase-lite-ios,couchbase/couchbase-lite-ios,couchbase/couchbase-lite-ios,amco/couchbase-lite-ios,amco/couchbase-lite-ios,couchbase/couchbase-lite-ios,couchbase/couchbase-lite-ios,couchbase/couchbase-lite-ios