Improved SQLite busy handling by using an in-memory lock
NSDecimalAttributeType change type NSNumber to NSDecimalNumber
Merge pull request #462 from ManuTroquet/NSAttributeType

[coredata] NSDecimalAttributeType change type NSNumber to NSDecimalNumber
view reset should not count initial deletes as changes, otherwise total docs might end up as negative if new view mapblock emits less rows than the previous
update CBLView setMapBlock: to post kCBLDatabaseChangeNotification. this causes any live queries to be updated
Merge pull request #470 from mglasgow/bug-newMapBlockHasLessRows

view reset should not count initial deletes as changes, otherwise total ...
CBLView now post as notification when the mapblock changes of an existing view. CBLLiveQuery now listens for this and updates itself accordingly. unit test included
Merge pull request #473 from mglasgow/bug-updateViewShouldUpdateLiveQueries

CBLLiveQuery will now refresh after the view's mapBlock is changed.

Fixes #471
Unit tests: make certain databases are closed at end of each test

Leaving a db open between tests can cause problems if it's reopened by
another test and already has things like docs or validations in it.

Conflicts:
	Source/CBLReplicator_Tests.m
CBJSONEncoder: Use 6 decimal places, not 16, for 32-bit floats
API: Added CBLLiveQuery.updateInterval

For couchbaselabs/couchbase-lite-api#111
Improvements to runloop task scheduling & live queries

* CBLLiveQuery no longer makes redundant queries when the database
  hasn't changed since the last query.
* -[CBLQuery waitForRows] no longer waits in the default runloop mode,
  as this can cause nasty re-entrant calls when user events arrive.
  Instead, we use a custom runloop mode.
* Added a utility method -[CBLDatabase waitFor:] to encapsulate this
  improved waiting behavior.
* Don't use dispatch-queue mode on the main thread. In dispatch-queue
  mode, operations like waitForRows are impossible because you can't
  do the equivalent of spinning a nested runloop.
Fixes #477
Fixed insertion-speed regression with SQLite 3.8 (i.e. Yosemite)

The new query planner in SQLite 3.8 was using the very inefficient index
revs_cur_deleted for the query that finds a doc's winning revision,
which made the query very slow. Fixed it by replacing that index with
a souped-up version of the existing revs_current.
Fixes #487
Fixed a typo in a doc-comment in CBLReplication.
CBLJSViewCompiler target no longer links static JavaScriptCore framework

It complicates the build, and is no longer needed on iOS 7+.
Fixes #451
Don't convert CoreData relation names to lowercase

(Fix by ManuTroquet, pull-request #461)
Tweaked LiveQuery unit test to avoid occasional timing-based failures
Remove unused-but-confusing duplicate GCDAsyncSocket.m from project

Both CocoaHTTPServer and WebSocket use GCDAsyncSocket, so there are two
copies of the source code in the tree, but we only build one of them
(obviously) so that should be the only one in the project.
Change SSL settings to TLSv1, to avoid SSLv3 POODLE vulnerability

Fixes #492
Add link to CRM demo app