DatastoreDAO bug fixes:
DatastoreDAO bug fixes:

- INT32_MAX constant was on wrong class
- Add "sub" handling in put(o, sub)
- Return on all promise chain callbacks for removeAll() to ensure tests wait
  for removal to finish before proceeding

jacksonic/vjlofvhjfgm,TanayParikh/foam2,foam-framework/foam2,foam-framework/foam2,TanayParikh/foam2,foam-framework/foam2,TanayParikh/foam2,jacksonic/vjlofvhjfgm,jacksonic/vjlofvhjfgm,TanayParikh/foam2,foam-framework/foam2,foam-framework/foam2