Share map/reduce/filter/validate fns with background dbs

When a CBLManager runs a background-thread manager, the CBLDatabases in the background manager
need to have access to the callback blocks defined in the main manager, or they won't work right.
Created a CBL_Shared object to hold this shared state. Fixes #26.