Fix #418 deleteDatabase: blocking thread

* CBL_Shared's forgetDatabaseNamed: blocks CBLDatabase objects from closing when they receive DatabaseWillBeDeleted notification. Instead of doing sleep, calling runloop to spin to allow the other CBLDatabase objects to get closed.

* When closing CBLManager, closing all databases in the CBL_Shared object as well.
Fixed unit tests by making sure resources get cleaned up
Renamed CBLView.totalDocs to totalRows

(Not public so this isn't an API change.)
Added CBLUITableSource class to library exported-symbols list
#418 Revert changes in CBL_Shared and update unit test

* Per code review, revert changes in CBL_Shared back to use usleep instead of using NSRunLoop to wait.

* Update API_DeleteDatabase to ensure that the copied manager is closed and add test for the case that multiple managers working on different threads.
Merge pull request #428 from couchbase/feature/issue_418

Fix #418 deleteDatabase: blocking thread
Fix #424 Crash in CoreFoundation boundPairReadClose()

* Apply the workaround according to the discussion in https://github.com/AFNetworking/AFNetworking/issues/907.
Update the characters to be escaped in URL params

* Add all of the reserved characters according to section 2.2 in rfc3986 that haven't get escaped automatically by the Apple library

* Consolidate CBLEscapeID and CBLEscapeURLParam into just CBLEscapeURLParam

* Update test case and others accordingly
Merge pull request #431 from couchbase/feature/issue_424

Fix #424 Crash in CoreFoundation boundPairReadClose()
Merge pull request #430 from couchbase/feature/escape_url_params

Update the characters to be escaped in URL params
API CHANGE: Added public -[CBLDatabase close:] method

Fixes #429
Fixed some warnings when building with Xcode 6
Added more missing classes to the exported-symbols file

Added:
* CBLAuthenticator
* CBLLiveQuery
* CBLModelArray
Sorted the class & function lists alphabetically to make names easier to find.
Added CBLReplication to exported-symbols list too.
Add exported-symbol checks to iOS and Mac test app targets

Each target now references every public class in the API, which will trigger a compile error (in a Release build) if a class hasn't been exported in the .exp file.
Fix compilation error
Merge branch 'master' into feature/query

Conflicts:
	Source/API/APITests.m
	Source/API/ModelTests.m
Moved CBLQueryPlanner to "Extras", removed from framework

Since it's still experimental.
It's still in the Test app targets.