FLOE-218: modified the afterChange event binding

afterChange is now fired on the "complete" event from pouchdb. This only fires after all of the changes have completed.
Merge branch 'master' into FLOE-218
Merge remote-tracking branch 'justin/FLOE-218'

* justin/FLOE-218:
  FLOE-218: modified the afterChange event binding
Merge branch 'master' into FLOE-219