Fixes in ModelDepot
Added a constructor to Promise class to allow creating of already resolved or rejected promises.
Merge branch 'master' of github.com:OptimalBits/ground
Merge branch 'master' of github.com:OptimalBits/ground
Added a Mutex class.
Removed obsolete code and added a Mutex for resync method.
Temporarily removed nextTick to avoid some strange side effects.
Only listen to resync if storageQueue is defined
Added INVALID_ID error.
Several improvements in model and collection instantiation
Hack for handling Invalid ObjectId errors
Made fetch method promise based.
be sure that the list of ids to remove do not have duplicate ids
Fixes in resync code.
New tests for promises.
Updated unit tests to work after latest changes.
Merge branch 'master' of github.com:OptimalBits/ground