#316 Add 'type' document property to the CBLModel

* Add 'type' document property to the CBLModel.

* Add API_ModelTypeProperty test to ModelTests.
#316 Move the property to the protected section

Move the property to the protected section and improve comment per code review.
Merge pull request #455 from couchbase/feature/issue_316

#316 Add 'type' document property to the CBLModel
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
Merge branch 'master' into forestdb

Conflicts:
	CouchbaseLite.xcodeproj/project.pbxproj
	Source/API/APITests.m
	Source/API/APIViewTests.m
	Source/API/CBLManager.m
	Source/API/CBLQuery.m
	Source/API/CBLView.m
	Source/CBLDatabase+Insertion.m
	Source/CBLDatabase+Internal.m
	Source/CBLReplicator_Tests.m
	Source/CBLView+Internal.h
	Source/CBLView+Internal.m
	Source/CBL_Database_Tests.m
	Source/CBL_View_Tests.m
	vendor/fmdb